-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #820 from OutSystems/GitHubDocGenPub
Create DocsGenDeployManually.yml
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: docs-generate-deploy-manually | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
compile-prod: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
|
||
- run: npm install | ||
|
||
- name: Compile Prod | ||
run: npm run build | ||
|
||
- name: Git Commit | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: main | ||
commit_message: Compiled Production Mode [skip ci] | ||
|
||
update-doc: | ||
needs: compile-prod | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
token: ${{ secrets.PAT }} | ||
|
||
- uses: actions/setup-node@v3 | ||
|
||
- run: npm install | ||
|
||
- name: Install graphviz | ||
run: sudo apt install -y graphviz | ||
|
||
- run: npm run docs | ||
|
||
- name: Git Commit | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: main | ||
commit_message: Update documentation [skip ci] | ||
|
||
deploy-doc: | ||
needs: update-doc | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
|
||
- uses: actions/setup-node@v3 | ||
|
||
- name: Push files into github page | ||
uses: GuillaumeFalourd/copy-push-files@v1 | ||
|
||
with: | ||
source_files: docs/* | ||
remote_repository: https://github.com/outsystems-ui-docs/outsystems-ui-docs.github.io | ||
access_token: ${{ secrets.UICOMPONENTSDOCS }} | ||
target_branch: main | ||
commit_message: Deploy documentation. |