Skip to content

Commit 98cc384

Browse files
authored
Fix - Update doc deployment job (#394)
* [workflow] Update arguments for job 'JamesIves/github-pages-deploy-action' Signed-off-by: Dorian Savina <d.savina@thecodingmachine.com> * [workflow] Only deploy documentation on push/release Signed-off-by: Dorian Savina <d.savina@thecodingmachine.com>
1 parent b8657d4 commit 98cc384

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/doc_generation.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Generate the complete documentation then upload to the website under the master section
2-
name: "Doc generation on master"
2+
name: "Doc generation"
33

44
on:
55
pull_request: ~
@@ -35,9 +35,10 @@ jobs:
3535
working-directory: "website"
3636

3737
- name: "Deploy website"
38+
if: "${{ github.event_name == 'push' || github.event_name == 'release' }}"
3839
uses: JamesIves/github-pages-deploy-action@4.1.5
3940
with:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
BRANCH: gh-pages # The branch the action should deploy to.
42-
FOLDER: website/build # The folder the action should deploy.
43-
CLEAN: true # Automatically remove deleted files from the deploy branch
41+
token: ${{ secrets.GITHUB_TOKEN }}
42+
branch: gh-pages # The branch the action should deploy to.
43+
folder: website/build # The folder the action should deploy.
44+
clean: true # Automatically remove deleted files from the deploy branch

0 commit comments

Comments
 (0)