ci: add release workflow action

This commit is contained in:
Toby 2024-01-20 10:42:14 -08:00
parent 4f86f91a15
commit 25241c9df0

26
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,26 @@
on:
release:
types: [ created ]
permissions:
contents: write
packages: write
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ linux ]
goarch: [ "386", amd64, arm64 ]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://go.dev/dl/go1.21.6.linux-amd64.tar.gz"
binary_name: "OpenGFW"
extra_files: LICENSE README.md README.zh.md