diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c03e579..69178a3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,6 +36,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') with: path: ./public @@ -45,6 +46,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') steps: - name: Deploy to GitHub Pages id: deployment