Skip to content

Commit de22af7

Browse files
committed
try publish fix
1 parent 59b0367 commit de22af7

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

.github/workflows/build.yml

+37-37
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,42 @@ on:
66
type: [ synchronize ]
77

88
jobs:
9-
build:
10-
strategy:
11-
matrix:
12-
os:
13-
- runner: "macos-latest"
14-
build-script: "nix-build -A dhall-secret.components.exes.dhall-secret"
15-
- runner: "ubuntu-latest"
16-
build-script: "nix-build -A projectCross.musl64.hsPkgs.dhall-secret.components.exes.dhall-secret"
17-
name: build on ${{ matrix.os.runner }}
18-
runs-on: ${{ matrix.os.runner }}
19-
if: "!contains(github.event.head_commit.message, 'ci skip')"
20-
steps:
21-
- uses: actions/checkout@v2
22-
- uses: dhall-lang/setup-dhall@v4
23-
- uses: cachix/install-nix-action@v18
24-
with:
25-
nix_path: nixpkgs=channel:nixos-22.05
26-
extra_nix_config: |
27-
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
28-
substituters = https://cache.iog.io https://hydra.iohk.io https://cache.nixos.org/
29-
- uses: cachix/cachix-action@v10
30-
with:
31-
name: jcouyang
32-
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
33-
- name: Test
34-
run: nix-build -A dhall-secret.components.tests
35-
- run: |
36-
VERSION=$(dhall text < ./version.dhall)
37-
echo publishing $VERSION lib...
38-
env VER=$VERSION nix-shell -p gnused --run 'sed -i "s/0.1.0.0/${VER}/" ./dhall-secret.cabal'
39-
- name: Static Binary
40-
run: ${{matrix.os.build-script}}
41-
- uses: actions/upload-artifact@v2
42-
with:
43-
name: ${{matrix.os.runner}}-binary
44-
path: ./result/bin/dhall-secret
9+
# build:
10+
# strategy:
11+
# matrix:
12+
# os:
13+
# - runner: "macos-latest"
14+
# build-script: "nix-build -A dhall-secret.components.exes.dhall-secret"
15+
# - runner: "ubuntu-latest"
16+
# build-script: "nix-build -A projectCross.musl64.hsPkgs.dhall-secret.components.exes.dhall-secret"
17+
# name: build on ${{ matrix.os.runner }}
18+
# runs-on: ${{ matrix.os.runner }}
19+
# if: "!contains(github.event.head_commit.message, 'ci skip')"
20+
# steps:
21+
# - uses: actions/checkout@v2
22+
# - uses: dhall-lang/setup-dhall@v4
23+
# - uses: cachix/install-nix-action@v18
24+
# with:
25+
# nix_path: nixpkgs=channel:nixos-22.05
26+
# extra_nix_config: |
27+
# trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
28+
# substituters = https://cache.iog.io https://hydra.iohk.io https://cache.nixos.org/
29+
# - uses: cachix/cachix-action@v10
30+
# with:
31+
# name: jcouyang
32+
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
33+
# - name: Test
34+
# run: nix-build -A dhall-secret.components.tests
35+
# - run: |
36+
# VERSION=$(dhall text < ./version.dhall)
37+
# echo publishing $VERSION lib...
38+
# env VER=$VERSION nix-shell -p gnused --run 'sed -i "s/0.1.0.0/${VER}/" ./dhall-secret.cabal'
39+
# - name: Static Binary
40+
# run: ${{matrix.os.build-script}}
41+
# - uses: actions/upload-artifact@v2
42+
# with:
43+
# name: ${{matrix.os.runner}}-binary
44+
# path: ./result/bin/dhall-secret
4545
publish:
4646
runs-on: ubuntu-latest
4747
if: "!contains(github.event.head_commit.message, 'publish skip') && (github.ref == 'refs/heads/master')"
@@ -68,7 +68,7 @@ jobs:
6868
env:
6969
HACKAGE_PASS: ${{ secrets.HACKAGE_PASS }}
7070
run: |
71-
VERSION=$(dhall text < ./version.dhall)
71+
export VERSION=$(dhall text < ./version.dhall)
7272
echo publishing $VERSION lib...
7373
env VER=$VERSION nix-shell -p gnused --run 'sed -i "s/0.1.0.0/${VER}/" ./dhall-secret.cabal'
7474
nix-shell --run 'cabal sdist -o .'

0 commit comments

Comments
 (0)