fix: 修复构建和上传二进制文件的名称

This commit is contained in:
Akizon77
2025-04-29 21:12:11 +08:00
parent f607957365
commit 07b2eef610

View File

@@ -4,6 +4,9 @@ on:
release:
types: [published]
permissions:
contents: write
jobs:
build-and-attach:
runs-on: ubuntu-latest
@@ -27,7 +30,7 @@ jobs:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
BINARY_NAME=myapp-${{ matrix.goos }}-${{ matrix.goarch }}
BINARY_NAME=komari-agent-${{ matrix.goos }}-${{ matrix.goarch }}
if [ "${{ matrix.goos }}" = "windows" ]; then
BINARY_NAME=${BINARY_NAME}.exe
fi
@@ -37,7 +40,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
BINARY_NAME=myapp-${{ matrix.goos }}-${{ matrix.goarch }}
BINARY_NAME=komari-agent-${{ matrix.goos }}-${{ matrix.goarch }}
if [ "${{ matrix.goos }}" = "windows" ]; then
BINARY_NAME=${BINARY_NAME}.exe
fi