Skip to content

Commit

Permalink
Update go-releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
windfgg authored Nov 18, 2023
1 parent 1d3456a commit 7d1555f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/go-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ name: GoRelease
on:
- push
- create

env:
BINARY_NAME : "ProxyPool"

jobs:
build-go-binary:
runs-on: ubuntu-latest
strategy:
matrix:

goos: [linux, windows]
goarch: ["386", amd64, arm64]
exclude:
Expand All @@ -17,11 +21,23 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: mknejp/delete-release-assets@v1
with:
assets: |
*.tar.gz
*.tar.gz.md5
*.zip
*.zip.md5
token: ${{ secrets.GITHUB_TOKEN }}
tag: latest
fail-if-no-assets: false
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
asset_name: ${{env.BINARY_NAME }}-${{ matrix.goos }}-${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.21.4.linux-amd64.tar.gz"
binary_name: "ProxyPool"
binary_name: ${{ env.BINARY_NAME }}
release_tag: latest
extra_files: config.yml

0 comments on commit 7d1555f

Please sign in to comment.