Update checkout action, add pre_command for go generate
This commit is contained in:
parent
64d17d5c25
commit
541deac29e
1 changed files with 22 additions and 10 deletions
32
.github/workflows/release.yml
vendored
32
.github/workflows/release.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
# .github/workflows/release.yaml
|
# .github/workflows/release.yaml
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
|
@ -9,39 +9,51 @@ jobs:
|
||||||
name: release linux/amd64
|
name: release linux/amd64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: wangyoucao577/go-release-action@v1.22
|
- uses: wangyoucao577/go-release-action@v1.30
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: linux
|
goos: linux
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
|
pre_command: |
|
||||||
|
go install golang.org/x/tools/cmd/stringer@latest
|
||||||
|
&& go generate ./...
|
||||||
release-linux-arm64:
|
release-linux-arm64:
|
||||||
name: release linux/arm64
|
name: release linux/arm64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: wangyoucao577/go-release-action@v1.22
|
- uses: wangyoucao577/go-release-action@v1.30
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: linux
|
goos: linux
|
||||||
goarch: arm64
|
goarch: arm64
|
||||||
|
pre_command: |
|
||||||
|
go install golang.org/x/tools/cmd/stringer@latest
|
||||||
|
&& go generate ./...
|
||||||
release-linux-arm:
|
release-linux-arm:
|
||||||
name: release linux/arm
|
name: release linux/arm
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: wangyoucao577/go-release-action@v1.22
|
- uses: wangyoucao577/go-release-action@v1.30
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: linux
|
goos: linux
|
||||||
goarch: arm
|
goarch: arm
|
||||||
|
pre_command: |
|
||||||
|
go install golang.org/x/tools/cmd/stringer@latest
|
||||||
|
&& go generate ./...
|
||||||
release-darwin-amd64:
|
release-darwin-amd64:
|
||||||
name: release darwin/amd64
|
name: release darwin/amd64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: wangyoucao577/go-release-action@v1.22
|
- uses: wangyoucao577/go-release-action@v1.30
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
goos: darwin
|
goos: darwin
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
|
pre_command: |
|
||||||
|
go install golang.org/x/tools/cmd/stringer@latest
|
||||||
|
&& go generate ./...
|
Loading…
Reference in a new issue