exporter-go-mystrom/.github/workflows/release.yml

59 lines
1.6 KiB
YAML
Raw Normal View History

2021-11-12 13:49:38 +01:00
# .github/workflows/release.yaml
on:
2021-11-12 14:00:26 +01:00
release:
types: [created]
2021-11-12 13:49:38 +01:00
jobs:
release-linux-amd64:
name: release linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.30
2021-11-12 14:00:26 +01:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64
pre_command: |
go install golang.org/x/tools/cmd/stringer@latest
&& go generate ./...
2021-11-12 14:00:26 +01:00
release-linux-arm64:
name: release linux/arm64
2021-11-12 13:49:38 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.30
2021-11-12 14:00:26 +01:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: arm64
pre_command: |
go install golang.org/x/tools/cmd/stringer@latest
&& go generate ./...
2021-11-12 14:00:26 +01:00
release-linux-arm:
name: release linux/arm
2021-11-12 13:49:38 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.30
2021-11-12 14:00:26 +01:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: arm
pre_command: |
go install golang.org/x/tools/cmd/stringer@latest
&& go generate ./...
2021-11-12 13:49:38 +01:00
release-darwin-amd64:
name: release darwin/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.30
2021-11-12 14:00:26 +01:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: darwin
goarch: amd64
pre_command: |
go install golang.org/x/tools/cmd/stringer@latest
&& go generate ./...