Skip to content

Commit 7321906

Browse files
committed
fix: fix env set in release.yml
1 parent 252aebc commit 7321906

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
types: [created]
44

55
jobs:
6-
- releases-windows:
6+
releases-windows:
77
name: Release Authorizer Binary
88
runs-on: ubuntu-latest
99
strategy:
@@ -22,9 +22,7 @@ jobs:
2222
- name: Set VERSION env
2323
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
2424
- name: Set GO env
25-
env:
26-
- CGO_ENABLED=1
27-
- CC=x86_64-w64-mingw32-gcc
25+
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo CC=x86_64-w64-mingw32-gcc >> ${GITHUB_ENV}
2826
- uses: wangyoucao577/[email protected]
2927
with:
3028
github_token: ${{ secrets.RELEASE_TOKEN }}
@@ -33,7 +31,7 @@ jobs:
3331
build_command: make clean && make
3432
md5sum: FALSE
3533
extra_files: .env.sample app build template
36-
- releases-darwin:
34+
releases-darwin:
3735
name: Release Authorizer Binary
3836
runs-on: ubuntu-latest
3937
strategy:
@@ -52,9 +50,7 @@ jobs:
5250
- name: Set VERSION env
5351
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
5452
- name: Set GO env
55-
env:
56-
- CGO_ENABLED=1
57-
- CC=o64-clang
53+
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo CC=o64-clang >> ${GITHUB_ENV}
5854
- uses: wangyoucao577/[email protected]
5955
with:
6056
github_token: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)