mirror of
https://github.com/aunefyren/wrapperr
synced 2025-01-10 16:48:45 +00:00
31 lines
913 B
YAML
31 lines
913 B
YAML
name: Release GO binaries
|
|
|
|
on:
|
|
release:
|
|
types: [edited,created,published]
|
|
|
|
jobs:
|
|
releases-matrix:
|
|
name: Release Go Binary
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
|
|
goos: [linux, windows]
|
|
goarch: ["386", amd64, arm64, arm]
|
|
exclude:
|
|
- goarch: arm64, arm
|
|
goos: windows
|
|
steps:
|
|
- 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
|