fix: always upload tarball to release regardless of ref_type
This commit is contained in:
1 file changed
+3
-5
@@ -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
|
||||
Reference in new issue
Block a user