Updated binary release action

This commit is contained in:
Aune 2022-12-13 12:08:29 +01:00
parent 786c0b495b
commit 6bb9e4d088

View file

@ -2,7 +2,7 @@ name: Release GO binaries
on:
release:
types: [edited,published]
types: [edited,created,published]
jobs:
releases-matrix:
@ -10,23 +10,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows]
goarch: [amd64, arm64, 386]
#exclude:
# - goarch: "386"
# goos: windows
goarch: ["386", amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v2
- name: Run tests
run: go test -v -p=1 -timeout=0 ./...
- uses: wangyoucao577/go-release-action@v1.29
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./"
binary_name: "Wrapperr"
ldflags: "-s -w"
extra_files: README.md config web CODE_OF_CONDUCT.md config_default.json Dockerfile
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.34
with:
github_token: ${{ secrets.GIT_HUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.19"
binary_name: "wrapperr"
ldflags: "-s -w"
extra_files: README.md config web CODE_OF_CONDUCT.md config_default.json Dockerfile
retry: 10
overwrite: true