-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (49 loc) · 1.48 KB
/
go-releases.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: GoRelease
on:
- push
- create
env:
BINARY_NAME: "ProxyPool"
jobs:
delete-release-assets:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Delete release assets
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
fail-if-no-release: false
build-go-binary:
needs: delete-release-assets
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows]
goarch: ["386", amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Go release action
uses: wangyoucao577/[email protected]
with:
pre_command: git clone https://github.com/windfgg/goproxy.git
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: ${{ env.BINARY_NAME }}
release_tag: latest
run: git clone https://github.com/windfgg/goproxy