fix: update release.yml
This commit is contained in:
parent
b578f6bfcc
commit
43ce66b444
18
.github/workflows/go.yml
vendored
18
.github/workflows/go.yml
vendored
@ -1,18 +0,0 @@
|
|||||||
# This workflow will build a golang project
|
|
||||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
|
|
||||||
|
|
||||||
name: Go
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: abyss
|
|
||||||
uses: ngs/go-release.action@v1.0.2
|
|
89
.github/workflows/release.yml
vendored
Normal file
89
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
# .github/workflows/release.yaml
|
||||||
|
|
||||||
|
on: release
|
||||||
|
name: Build Release
|
||||||
|
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: "README.md LICENSE"
|
||||||
|
release-linux-amd64:
|
||||||
|
name: release linux/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: linux
|
||||||
|
EXTRA_FILES: "README.md 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: "README.md LICENSE"
|
||||||
|
release-linux-arm64:
|
||||||
|
name: release linux/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: arm64
|
||||||
|
GOOS: linux
|
||||||
|
EXTRA_FILES: "README.md LICENSE"
|
||||||
|
release-darwin-amd64:
|
||||||
|
name: release darwin/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: darwin
|
||||||
|
EXTRA_FILES: "README.md 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: "README.md 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: "README.md LICENSE"
|
Loading…
Reference in New Issue
Block a user