Skip to content

Commit

Permalink
Squash gh-pages into a single commit when deploying doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nhuet authored and g-poveda committed Jan 4, 2024
1 parent 5d9da87 commit 6f40feb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ jobs:
branch: gh-pages # The branch the action should deploy to.
folder: docs/build/html # The folder the action should deploy.
target-folder: /${{ github.event.repository.default_branch }} # The folder the action should deploy to.
commit-message: publish documentation for ${{ github.event.repository.default_branch }}
commit-message: publish documentation
single-commit: true

deploy:
# for release tags
Expand Down Expand Up @@ -528,7 +529,8 @@ jobs:
branch: gh-pages # The branch the action should deploy to.
folder: docs/build/html # The folder the action should deploy.
target-folder: /${{ needs.build.outputs.do_version }} # The folder the action should deploy to.
commit-message: publish documentation for ${{ needs.build.outputs.do_version }}
commit-message: publish documentation
single-commit: true

update-doc-versions:
# triggers even if only one needed job succeeded (typically at least one will be skipped)
Expand Down Expand Up @@ -566,5 +568,6 @@ jobs:
branch: gh-pages # The branch the action should deploy to.
folder: gh-pages # The folder the action should deploy.
target-folder: / # The folder the action should deploy to.
commit-message: update versions.json
commit-message: publish documentation
clean: false # do not remove other files (including whole doc versions)
single-commit: true

0 comments on commit 6f40feb

Please sign in to comment.