标签名也不用全字匹配吧...另外修复一些零值不返回错误的错误 #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
tags: | |
- "v*" | |
permissions: | |
contents: write | |
packages: write | |
jobs: | |
create-release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
build-matrix: | |
name: Release Go Binary | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: [linux, darwin, windows] | |
goarch: [amd64, arm64] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Release Go Binary | |
uses: wangyoucao577/go-release-action@v1 | |
with: | |
pre_command: export CGO_ENABLED=0 | |
goos: ${{ matrix.goos }} | |
goarch: ${{ matrix.goarch }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
extra_files: | | |
LICENSE | |
README.md | |
config.example.toml | |
ldflags: -s -w | |
binary_name: ManyACG |