Skip to content

Commit 8257028

Browse files
authored
fix(ci): upload binaries to openab-* release tag (#565)
The Helm release uses openab-X.Y.Z tag while the build triggers on vX.Y.Z. Try uploading to openab-* first (Helm release), fall back to v* tag. Co-authored-by: chaodu-agent <chaodu-agent@users.noreply.github.com>
1 parent 202edc0 commit 8257028

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build-binaries.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ jobs:
6565
GH_TOKEN: ${{ github.token }}
6666
shell: bash
6767
run: |
68-
TAG="${{ steps.tag.outputs.tag }}"
6968
VERSION="${{ steps.tag.outputs.version }}"
7069
NAME="openab-${VERSION}-${{ matrix.os }}-${{ matrix.arch }}.${{ matrix.archive }}"
71-
gh release upload "$TAG" "$NAME" --clobber || true
70+
# Helm release uses openab-X.Y.Z tag, binary release uses vX.Y.Z tag
71+
# Try both — one will exist
72+
gh release upload "openab-${VERSION}" "$NAME" --clobber 2>/dev/null \
73+
|| gh release upload "${{ steps.tag.outputs.tag }}" "$NAME" --clobber \
74+
|| true
7275
7376
- name: Upload artifact
7477
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)