Skip to content

Commit

Permalink
ci: add release workflow action
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyxdd committed Jan 20, 2024
1 parent 4f86f91 commit 25241c9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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

1 comment on commit 25241c9

@bencheikh-la
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commentaire

Please sign in to comment.