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 af23882 commit f681b77
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .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
destination_dir: ${{ github.ref_name }}
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 f681b77

Please sign in to comment.