Skip to content

Commit

Permalink
Make sure release is published for docs deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
H0R5E authored Feb 22, 2022
1 parent 9c731c9 commit aac1f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
cp docs/_assets/gh-pages-redirect.html ${{ env.BUILD_DIR }}/index.html
cp docs/_assets/gh-pages-readme.md ${{ env.BUILD_DIR }}/README.md
- name: Deploy
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'release' && github.event.action == 'published') }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit aac1f15

Please sign in to comment.