File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments