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