Skip to content

Commit

Permalink
Create go.yml
Browse files Browse the repository at this point in the history
create build workflow
  • Loading branch information
enix223 committed Apr 17, 2023
1 parent 9253e47 commit ac86e2f
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build Release

on:
release:
types: [created]

jobs:
release-linux-386:
name: release-linux/386
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.32
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: 386
release-linux-amd64:
name: release-linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.32
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64
release-darwin-amd64:
name: release darwin/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.32
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: darwin
goarch: amd64
release-darwin-arm64:
name: release darwin/arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.32
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: darwin
goarch: arm64
release-windows-386:
name: release windows/386
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.32
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: windows
goarch: 386
release-windows-amd64:
name: release windows/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.32
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: windows
goarch: amd64

0 comments on commit ac86e2f

Please sign in to comment.