Change go release action
This commit is contained in:
parent
a400419173
commit
34d415c13f
1 changed files with 34 additions and 75 deletions
109
.github/workflows/release.yml
vendored
109
.github/workflows/release.yml
vendored
|
@ -1,89 +1,48 @@
|
||||||
# .github/workflows/release.yaml
|
# .github/workflows/release.yaml
|
||||||
|
|
||||||
on: release
|
on:
|
||||||
name: Build Release
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-linux-386:
|
|
||||||
name: release linux/386
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: "386"
|
|
||||||
GOOS: linux
|
|
||||||
EXTRA_FILES: "LICENSE"
|
|
||||||
release-linux-amd64:
|
release-linux-amd64:
|
||||||
name: release linux/amd64
|
name: release linux/amd64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2
|
||||||
- name: compile and release
|
- uses: wangyoucao577/go-release-action@v1.20
|
||||||
uses: ngs/go-release.action@v1.0.1
|
with:
|
||||||
env:
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
goos: linux
|
||||||
GOARCH: amd64
|
goarch: amd64
|
||||||
GOOS: linux
|
|
||||||
EXTRA_FILES: "LICENSE"
|
|
||||||
release-linux-arm:
|
|
||||||
name: release linux/386
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: "arm"
|
|
||||||
GOOS: linux
|
|
||||||
EXTRA_FILES: "LICENSE"
|
|
||||||
release-linux-arm64:
|
release-linux-arm64:
|
||||||
name: release linux/amd64
|
name: release linux/arm64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v2
|
||||||
- name: compile and release
|
- uses: wangyoucao577/go-release-action@v1.20
|
||||||
uses: ngs/go-release.action@v1.0.1
|
with:
|
||||||
env:
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
goos: linux
|
||||||
GOARCH: arm64
|
goarch: arm64
|
||||||
GOOS: linux
|
release-linux-arm:
|
||||||
EXTRA_FILES: "LICENSE"
|
name: release linux/arm
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: wangyoucao577/go-release-action@v1.20
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
goos: linux
|
||||||
|
goarch: arm
|
||||||
|
|
||||||
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@master
|
- uses: actions/checkout@v2
|
||||||
- name: compile and release
|
- uses: wangyoucao577/go-release-action@v1.20
|
||||||
uses: ngs/go-release.action@v1.0.1
|
with:
|
||||||
env:
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
goos: darwin
|
||||||
GOARCH: amd64
|
goarch: amd64
|
||||||
GOOS: darwin
|
|
||||||
EXTRA_FILES: "LICENSE"
|
|
||||||
release-windows-386:
|
|
||||||
name: release windows/386
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: "386"
|
|
||||||
GOOS: windows
|
|
||||||
EXTRA_FILES: "LICENSE"
|
|
||||||
release-windows-amd64:
|
|
||||||
name: release windows/amd64
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@master
|
|
||||||
- name: compile and release
|
|
||||||
uses: ngs/go-release.action@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
GOARCH: amd64
|
|
||||||
GOOS: windows
|
|
||||||
EXTRA_FILES: "LICENSE"
|
|
Loading…
Reference in a new issue