diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 295f599..3057f1f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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 }}