forked from Mxmilu666/frp
fix(workflow): correct artifact naming and improve Windows build steps
This commit is contained in:
15
.github/workflows/build-all.yaml
vendored
15
.github/workflows/build-all.yaml
vendored
@@ -64,6 +64,11 @@ jobs:
|
||||
# 构建可执行文件
|
||||
make frpc frps
|
||||
|
||||
if [ "${{ matrix.goos }}" = "windows" ]; then
|
||||
if [ -f "./bin/frpc" ]; then mv ./bin/frpc ./bin/frpc.exe; fi
|
||||
if [ -f "./bin/frps" ]; then mv ./bin/frps ./bin/frps.exe; fi
|
||||
fi
|
||||
|
||||
out_dir="release/packages/frp_${version}_${{ matrix.goos }}_${{ matrix.goarch }}"
|
||||
mkdir -p "$out_dir"
|
||||
|
||||
@@ -79,18 +84,10 @@ jobs:
|
||||
cp -f conf/frpc.toml "$out_dir"
|
||||
cp -f conf/frps.toml "$out_dir"
|
||||
|
||||
cd release/packages
|
||||
if [ "${{ matrix.goos }}" = "windows" ]; then
|
||||
zip -rq frp_${version}_${{ matrix.goos }}_${{ matrix.goarch }}.zip frp_${version}_${{ matrix.goos }}_${{ matrix.goarch }}
|
||||
else
|
||||
tar -zcf frp_${version}_${{ matrix.goos }}_${{ matrix.goarch }}.tar.gz frp_${version}_${{ matrix.goos }}_${{ matrix.goarch }}
|
||||
fi
|
||||
cd ../../
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: frp_${{ matrix.goos }}_${{ matrix.goarch }}
|
||||
path: |
|
||||
release/packages/frp_*
|
||||
release/packages/LoliaFrp_*
|
||||
retention-days: 7
|
||||
Reference in New Issue
Block a user