Skip to content

Commit cc5baf7

Browse files
Match the Stack config used for deployment and fix CI(#252)
Update the CI config so that PRs run on the fresh branch rather than the main branch.
1 parent 5bc42ff commit cc5baf7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
- uses: actions/checkout@v2
3232
with:
3333
fetch-depth: 0
34-
ref: hakyll
3534

3635
- uses: haskell/actions/setup@v1
3736
name: Setup Haskell Stack
@@ -56,8 +55,8 @@ jobs:
5655
run: stack exec --system-ghc site rebuild
5756

5857
- name: Deploy
59-
# No deploy from pull requests
60-
if: ${{ github.event_name != 'pull_request' }}
58+
# Deploy only from non-pull-request changes to hakyll branch
59+
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/hakyll'}}
6160
run: |
6261
git config user.name github-actions
6362
git config user.email [email protected]

haskell-foundation.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cabal-version: 2.0
66
executable site
77
main-is: site.hs
88
build-depends: base == 4.*
9-
, hakyll ^>=4.15
9+
, hakyll ^>= 4.14
1010
, monadlist
1111
, pandoc >=2.11 && <2.20
1212
, text

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# resolver:
1616
# name: custom-snapshot
1717
# location: "./custom-snapshot.yaml"
18-
resolver: lts-18.10
18+
resolver: lts-18.28
1919

2020
# User packages to be built.
2121
# Various formats can be used as shown in the example below.

0 commit comments

Comments
 (0)