Skip to content

Commit

Permalink
ci: deploy documentation only on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkl33t committed Dec 7, 2023
1 parent 3b54781 commit d1a054d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
path: docs/build/html
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags')
needs: generate
permissions:
pages: write
id-token: write
steps:
- name: Deploy Pages artifact
- name: Deploy Pages artifact on tag
id: deployment
uses: actions/deploy-pages@v1
with:
Expand Down

0 comments on commit d1a054d

Please sign in to comment.