From ea6425712a65fcd83db3f7f44099d21db2d2fdaa Mon Sep 17 00:00:00 2001 From: strawberry Date: Sun, 17 Mar 2024 19:03:27 -0400 Subject: [PATCH] dont setup github pages if pull request Signed-off-by: strawberry --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 186631ff..d8e0e6e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,6 +47,7 @@ jobs: uses: actions/checkout@v4 - name: Setup GitHub Pages + if: github.event_name != 'pull_request' uses: actions/configure-pages@v4 - name: Install Nix (with flakes and nix-command enabled) @@ -191,11 +192,13 @@ jobs: compression-level: 0 - name: Upload generated documentation (book) as GitHub Pages artifact + if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@v3 with: path: public - name: Deploy to GitHub Pages + if: github.event_name != 'pull_request' id: deployment uses: actions/deploy-pages@v4