OpenGFW/.github/workflows/release.yaml

28 lines
661 B
YAML
Raw Normal View History

name: Release
2024-01-21 02:42:14 +08:00
on:
release:
2024-02-27 02:49:19 +08:00
types: [published]
2024-01-21 02:42:14 +08:00
permissions:
contents: write
packages: write
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
2024-02-27 02:49:19 +08:00
goos: [linux]
goarch: ["386", amd64, arm64]
2024-01-21 02:42:14 +08:00
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
2024-02-27 02:49:19 +08:00
goversion: "https://go.dev/dl/go1.22.0.linux-amd64.tar.gz"
2024-01-21 02:42:14 +08:00
binary_name: "OpenGFW"
2024-02-27 02:49:19 +08:00
extra_files: LICENSE README.md README.zh.md