Skip to content

Commit

Permalink
Run CI also on PRs (but keep deployment for master)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Apr 25, 2024
1 parent e03ff22 commit 9d17dbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Deploy
on:
pull_request:
push:
branches:
- master
Expand Down Expand Up @@ -35,13 +36,15 @@ jobs:
run: cabal run blog

- name: Upload artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v3
with:
path: ./build

deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'

permissions:
pages: write
Expand Down

0 comments on commit 9d17dbf

Please sign in to comment.