trigger documentation branch on tag

This commit is contained in:
Schmieder, Jacob
2024-09-02 08:31:43 +00:00
parent bbd22c019f
commit 3d290b2971
+2 -3
View File
@@ -2,8 +2,8 @@ name: documentation
on: on:
push: push:
branches: tags:
- main - 'v*.*.*'
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@@ -36,7 +36,6 @@ jobs:
make html make html
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/sphinx_action' }}
with: with:
publish_branch: gh-pages publish_branch: gh-pages
github_token: ${{ secrets.TOKEN_GH }} github_token: ${{ secrets.TOKEN_GH }}