fix: always upload tarball to release regardless of ref_type

This commit is contained in:
sankalp committed 2026-05-29 17:21:18 +05:45
1 parent 11c3cec99d
commit ae32ce9c8d
1 file changed
+3 -5
+3 -5
View File
@@ -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