Update build-release.yml
This commit is contained in:
parent
71926b255f
commit
65cdb50bd3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue