diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 0962328..aed9676 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -50,6 +50,7 @@ jobs: cd .. - name: Deploy uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }}