Update build-release.yml

This commit is contained in:
tidex 2025-02-20 06:18:52 +08:00 committed by GitHub
parent 71926b255f
commit 65cdb50bd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -50,6 +50,12 @@ jobs:
echo "Building for GOARCH=${GOARCH} GOMIPS=${GOMIPS}"
GOOS=linux go build -v -ldflags '-s -w' -o cloudflared-${{ matrix.target_arch }} ./cmd/cloudflared
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: cloudflared-${{ matrix.target_arch }}
path: cloudflared-${{ matrix.target_arch }}
release:
runs-on: ubuntu-latest
needs: build
@ -62,6 +68,12 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: cloudflared-${{ matrix.target_arch }}
path: .
- name: Generate SHA Sums
run: |
echo "Generating SHA sums for release assets..."
@ -73,4 +85,5 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
cloudflared-${{ matrix.target_arch }}
SHA256_SUMS