Skip to content

Commit 5018a2f

Browse files
committed
fix: use GITHUB_REF_NAME in release version
1 parent 5bb711b commit 5018a2f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
echo "Building for ${{ matrix.goarch }}"
2626
GOOS=linux GOARCH=${{ matrix.goarch }} go build -o observer-${{ matrix.goarch }} .
2727
28-
- name: Package binary as tar.gz with release tag
28+
- name: Package binary
2929
run: |
30-
TAG=${GITHUB_REF#refs/tags/}
30+
TAG=${GITHUB_REF_NAME}
3131
tar -czf observer-${{ matrix.goarch }}-$TAG.tar.gz observer-${{ matrix.goarch }}
3232
33-
- name: Upload artifact
33+
- name: Release
3434
uses: softprops/action-gh-release@v2
3535
with:
36-
name: observer-${{ matrix.goarch }}-${GITHUB_REF#refs/tags/}.tar.gz
37-
path: observer-${{ matrix.goarch }}-${GITHUB_REF#refs/tags/}.tar.gz
36+
name: observer-${{ matrix.goarch }}-${GITHUB_REF_NAME}.tar.gz
37+
files: observer-${{ matrix.goarch }}-${GITHUB_REF_NAME}.tar.gz

0 commit comments

Comments
 (0)