Skip to content

v2.0.9

v2.0.9 #38

Workflow file for this run

name: Release GO binaries
on:
release:
types: [edited,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.40
with:
github_token: ${{ secrets.GIT_HUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.21.5"
binary_name: "poenskelisten"
ldflags: "-s -w"
extra_files: README.md auth config controllers database middlewares models utilities web Dockerfile
retry: 10
overwrite: true
release_name: ${{ github.ref_name }}
pre_command: sed -i 's/{{RELEASE_TAG}}/${{ github.event.release.tag_name }}/g' config/config.go # Replace release variable with the name of this release