Skip to content

Commit

Permalink
Merge pull request #68 from ixugo/xu/release
Browse files Browse the repository at this point in the history
发布自动构建二进制
  • Loading branch information
ZSC714725 authored Apr 13, 2024
2 parents 9b2cb7f + 54b3600 commit 7700238
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# https://github.com/wangyoucao577/go-release-action

name: build-go-binary

on:
release:
types: [created] # 表示在创建新的 Release 时触发

permissions:
contents: write
packages: write

jobs:
build-go-binary:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin] # 需要打包的系统
goarch: [amd64, arm64] # 需要打包的架构
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1.49
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.22
md5sum: false
extra_files: ./README.md ./conf

0 comments on commit 7700238

Please sign in to comment.