2021-03-20 19:49:14 +01:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
2021-09-23 19:59:37 +02:00
|
|
|
workflow_dispatch:
|
2021-03-20 19:49:14 +01:00
|
|
|
release:
|
|
|
|
types: [ created ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
releases-matrix:
|
2021-03-20 19:58:24 +01:00
|
|
|
name: Release Go Binary (Linux)
|
2021-03-20 19:49:14 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
goos: [linux]
|
|
|
|
goarch: ["386", amd64, arm, arm64, ppc64le, s390x]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-09-23 19:59:37 +02:00
|
|
|
- uses: wangyoucao577/go-release-action@v1.20
|
2021-03-20 19:49:14 +01:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
goos: ${{ matrix.goos }}
|
|
|
|
goarch: ${{ matrix.goarch }}
|
|
|
|
binary_name: "apg"
|
|
|
|
extra_files: LICENSE README.md
|
|
|
|
sha256sum: true
|
|
|
|
md5sum: false
|
2021-09-23 19:56:13 +02:00
|
|
|
ldflags: '-s -w'
|
|
|
|
project_path: ./cmd/apg/
|