From ae32ce9c8d7d46477b0842837e77ea6e99760575 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 29 May 2026 17:21:18 +0545 Subject: [PATCH] fix: always upload tarball to release regardless of ref_type --- .github/workflows/release-smoke.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-smoke.yml b/.github/workflows/release-smoke.yml index 694b564..495c17b 100644 --- a/.github/workflows/release-smoke.yml +++ b/.github/workflows/release-smoke.yml @@ -101,12 +101,10 @@ jobs: post_process: | git add -A && git stash && git checkout master && git checkout stash -- . && git stash drop - name: Upload tarball to release - if: github.ref_type == 'tag' env: GH_TOKEN: ${{ github.token }} run: | - gh release upload "${{ github.ref_name }}" \ - "lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" --clobber 2>/dev/null || - gh release create "${{ github.ref_name }}" --title "${{ github.ref_name }}" --notes "" && - gh release upload "${{ github.ref_name }}" \ + TAG="v${{ steps.version.outputs.version }}" + gh release create "$TAG" --title "$TAG" --notes "" 2>/dev/null || true + gh release upload "$TAG" \ "lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" --clobber