From 9d17dbf83cdaea9a5efb8b53852b60a0f2870a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20van=20Br=C3=BCgge?= Date: Thu, 25 Apr 2024 17:46:52 +0100 Subject: [PATCH] Run CI also on PRs (but keep deployment for master) --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 61d452f..887d148 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,5 +1,6 @@ name: Deploy on: + pull_request: push: branches: - master @@ -35,6 +36,7 @@ jobs: run: cabal run blog - name: Upload artifact + if: github.ref == 'refs/heads/master' uses: actions/upload-pages-artifact@v3 with: path: ./build @@ -42,6 +44,7 @@ jobs: deploy: needs: build runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' permissions: pages: write