Skip to content

Commit 48a2da5

Browse files
committed
fix: rework github release action
1 parent 5018a2f commit 48a2da5

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,28 @@ jobs:
2525
echo "Building for ${{ matrix.goarch }}"
2626
GOOS=linux GOARCH=${{ matrix.goarch }} go build -o observer-${{ matrix.goarch }} .
2727
28-
- name: Package binary
28+
- name: Package artifacts
2929
run: |
30-
TAG=${GITHUB_REF_NAME}
30+
TAG=${{GITHUB_REF_NAME}}
3131
tar -czf observer-${{ matrix.goarch }}-$TAG.tar.gz observer-${{ matrix.goarch }}
3232
33+
- name: Upload artifacts
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: observer-${{ matrix.goarch }}
37+
path: observer-${{ matrix.goarch }}-${{GITHUB_REF_NAME}}.tar.gz
38+
release:
39+
runs-on: ubuntu-latest
40+
needs: build
41+
42+
steps:
43+
- name: Download build artifacts
44+
uses: actions/download-artifact@v4
45+
with:
46+
path: ./artifacts
47+
3348
- name: Release
3449
uses: softprops/action-gh-release@v2
3550
with:
36-
name: observer-${{ matrix.goarch }}-${GITHUB_REF_NAME}.tar.gz
37-
files: observer-${{ matrix.goarch }}-${GITHUB_REF_NAME}.tar.gz
51+
name: observer-${{GITHUB_REF_NAME}}
52+
files: ./artifacts/**/*.tar.gz

0 commit comments

Comments
 (0)