Skip to content

Commit aa4bd29

Browse files
authored
Fix condition of nix build job (haskell#1864)
1 parent da72a27 commit aa4bd29

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/nix.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
# This job runs when PRs are merged to master, and should be excluded from branch protections
5959
build:
6060
runs-on: ${{ matrix.os }}
61-
if: ${{ github.repository_owner == 'haskell' && github.ref == 'ref/heads/master' }}
61+
if: ${{ github.repository_owner == 'haskell' && github.ref == 'refs/heads/master' }}
6262
strategy:
6363
fail-fast: false
6464
matrix:
@@ -79,7 +79,9 @@ jobs:
7979
with:
8080
name: haskell-language-server
8181
authToken: ${{ secrets.HLS_CACHIX_AUTH_TOKEN }}
82-
- run: |
83-
nix develop --profile dev && cachix push haskell-language-server dev
82+
- name: Push development shell
83+
run: nix develop --profile dev && cachix push haskell-language-server dev
84+
- name: Build and push binaries
85+
run: |
8486
nix build
8587
nix path-info --json | jq -r '.[].path' | cachix push haskell-language-server

0 commit comments

Comments
 (0)