Skip to content

Commit

Permalink
Allow for docs deployment from branches
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaskosunen committed Oct 23, 2024
1 parent 6d79f53 commit eba75d8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,24 @@ jobs:
cd docs
poxy --verbose --git-tags --min-version v2.0.0 --no-squash-patches
- name: Deploy
- name: Deploy (master)
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref_name == 'master' || github.event_name == 'release' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/html
keep_files: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: Update documentation (GitHub actions deploy)

- name: Deploy (branch)
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref_name != 'master' && github.event_name != 'release' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/html
destination_dir: ref/${{ github.ref_name }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: Update documentation (GitHub actions deploy)

0 comments on commit eba75d8

Please sign in to comment.