File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,18 +41,11 @@ jobs:
4141 mkdir -p dist
4242 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o "dist/chicha-ip-proxy-${{ matrix.goos }}-${{ matrix.goarch }}${ext}"
4343
44- - name : Archive artifact
45- run : |
46- set -euo pipefail
47- ext=""
48- if [ "${{ matrix.goos }}" = "windows" ]; then ext=".exe"; fi
49- tar -czf "dist/chicha-ip-proxy-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz" -C dist "chicha-ip-proxy-${{ matrix.goos }}-${{ matrix.goarch }}${ext}"
50-
5144 - name : Upload artifact
5245 uses : actions/upload-artifact@v4
5346 with :
5447 name : chicha-ip-proxy-${{ matrix.goos }}-${{ matrix.goarch }}
55- path : dist/chicha-ip-proxy-${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
48+ path : dist/chicha-ip-proxy-${{ matrix.goos }}-${{ matrix.goarch }}*
5649
5750 release :
5851 if : contains(github.event.head_commit.message, 'stable release')
@@ -65,18 +58,18 @@ jobs:
6558 with :
6659 path : dist
6760
68- - name : Collect archives
61+ - name : Collect binaries
6962 run : |
7063 set -euo pipefail
7164 mkdir -p upload
72- find dist -name "*.tar.gz" -maxdepth 3 -print -exec mv {} upload/ \;
65+ find dist -maxdepth 3 -type f - name "chicha-ip-proxy-*" -print -exec mv {} upload/ \;
7366
7467 - name : Publish release
7568 uses : softprops/action-gh-release@v1
7669 with :
7770 tag_name : stable-${{ github.run_number }}
7871 name : Automated stable release
79- files : upload/*.tar.gz
72+ files : upload/chicha-ip-proxy-*
8073 env :
8174 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8275
You can’t perform that action at this time.
0 commit comments