fix: release action
This commit is contained in:
parent
acab410141
commit
c72c8d3232
9
.github/workflows/release.yaml
vendored
9
.github/workflows/release.yaml
vendored
|
@ -9,7 +9,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64
|
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64
|
||||||
goos: [linux]
|
goos: [linux, windows, darwin]
|
||||||
goarch: [amd64]
|
goarch: [amd64]
|
||||||
# goarch: ['386', amd64]
|
# goarch: ['386', amd64]
|
||||||
# exclude:
|
# exclude:
|
||||||
|
@ -17,10 +17,15 @@ jobs:
|
||||||
# goos: darwin
|
# goos: darwin
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set VERSION env
|
||||||
|
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
|
||||||
|
- name: Set CGO env
|
||||||
|
run: echo "CGO_ENABLED=1" >> $GITHUB_ENV
|
||||||
- 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 }}
|
||||||
goos: ${{ matrix.goos }}
|
goos: ${{ matrix.goos }}
|
||||||
goarch: ${{ matrix.goarch }}
|
goarch: ${{ matrix.goarch }}
|
||||||
build_command: make clean && make
|
build_command: make clean && make
|
||||||
extra_files: .env.sample app build
|
md5sum: FALSE
|
||||||
|
extra_files: .env.sample app build template
|
||||||
|
|
Loading…
Reference in New Issue
Block a user