Skip to content

Commit fa1e9f1

Browse files
Merge pull request #246 from nomeata/ci-fixes
Improve CI setup
2 parents b4ff12b + 4cedd91 commit fa1e9f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,18 @@ jobs:
4343
name: Cache ~/.stack
4444
with:
4545
path: ~/.stack
46-
key: ${{ runner.os }}-${{ matrix.ghc }}-stack
46+
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
47+
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
4748

4849
- name: Build dependencies
4950
run: stack build --system-ghc --only-dependencies
5051

5152
- name: Build site executable
5253
run: stack build --system-ghc
5354

54-
# Runs a set of commands using the runners shell
5555
- name: Deploy
56+
# No deploy from pull requests
57+
if: ${{ github.event_name != 'pull_request' }}
5658
run: |
5759
git config user.name github-actions
5860
git config user.email [email protected]

0 commit comments

Comments
 (0)