fix: fix env set in release.yml

This commit is contained in:
Lakhan Samani 2021-09-11 11:19:58 +05:30
parent 252aebce4b
commit 73219067f4

View File

@ -3,7 +3,7 @@ on:
types: [created] types: [created]
jobs: jobs:
- releases-windows: releases-windows:
name: Release Authorizer Binary name: Release Authorizer Binary
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -22,9 +22,7 @@ jobs:
- name: Set VERSION env - name: Set VERSION env
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV} run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
- name: Set GO env - name: Set GO env
env: run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo CC=x86_64-w64-mingw32-gcc >> ${GITHUB_ENV}
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- uses: wangyoucao577/go-release-action@v1.20 - uses: wangyoucao577/go-release-action@v1.20
with: with:
github_token: ${{ secrets.RELEASE_TOKEN }} github_token: ${{ secrets.RELEASE_TOKEN }}
@ -33,7 +31,7 @@ jobs:
build_command: make clean && make build_command: make clean && make
md5sum: FALSE md5sum: FALSE
extra_files: .env.sample app build template extra_files: .env.sample app build template
- releases-darwin: releases-darwin:
name: Release Authorizer Binary name: Release Authorizer Binary
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -52,9 +50,7 @@ jobs:
- name: Set VERSION env - name: Set VERSION env
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV} run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
- name: Set GO env - name: Set GO env
env: run: echo CGO_ENABLED=1 >> ${GITHUB_ENV} && echo CC=o64-clang >> ${GITHUB_ENV}
- CGO_ENABLED=1
- CC=o64-clang
- uses: wangyoucao577/go-release-action@v1.20 - uses: wangyoucao577/go-release-action@v1.20
with: with:
github_token: ${{ secrets.RELEASE_TOKEN }} github_token: ${{ secrets.RELEASE_TOKEN }}