2021-03-20 19:20:50 +01:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
2021-09-23 19:59:56 +02:00
|
|
|
workflow_dispatch:
|
2021-03-20 19:20:50 +01:00
|
|
|
release:
|
|
|
|
types: [ created ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
releases-matrix:
|
2021-03-20 19:58:37 +01:00
|
|
|
name: Release Go Binary (Windows)
|
2021-03-20 19:20:50 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-03-20 19:50:22 +01:00
|
|
|
goos: [windows]
|
|
|
|
goarch: ["386", amd64, arm]
|
2021-03-20 19:20:50 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-05-11 15:08:43 +02:00
|
|
|
- uses: wangyoucao577/go-release-action@v1.26
|
2021-03-20 19:20:50 +01:00
|
|
|
with:
|
2021-03-20 19:28:17 +01:00
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2021-03-20 19:20:50 +01:00
|
|
|
goos: ${{ matrix.goos }}
|
|
|
|
goarch: ${{ matrix.goarch }}
|
2021-03-20 19:38:05 +01:00
|
|
|
binary_name: "apg"
|
2021-03-20 19:33:45 +01:00
|
|
|
extra_files: LICENSE README.md
|
2021-03-20 19:38:05 +01:00
|
|
|
sha256sum: true
|
|
|
|
md5sum: false
|
2021-09-23 19:56:26 +02:00
|
|
|
ldflags: '-s -w'
|
|
|
|
project_path: ./cmd/apg/
|