Skip to content

Commit

Permalink
feat: release action
Browse files Browse the repository at this point in the history
  • Loading branch information
rmb122 committed Oct 1, 2022
1 parent d037d0c commit 4e937e5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
release:
types: [created]

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", "amd64", "arm64"]
exclude:
- goarch: "386"
goos: darwin

steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.32
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.19"
pre_command: "export CGO_ENABLED=0"
binary_name: "rogue_mysql_server"
extra_files: config.yaml README.md
compress_assets: zip
build_flags: "-trimpath"
ldflags: "-s -w"

0 comments on commit 4e937e5

Please sign in to comment.