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: |
|
post_process: |
|
||||||
git add -A && git stash && git checkout master && git checkout stash -- . && git stash drop
|
git add -A && git stash && git checkout master && git checkout stash -- . && git stash drop
|
||||||
- name: Upload tarball to release
|
- name: Upload tarball to release
|
||||||
if: github.ref_type == 'tag'
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
gh release upload "${{ github.ref_name }}" \
|
TAG="v${{ steps.version.outputs.version }}"
|
||||||
"lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" --clobber 2>/dev/null ||
|
gh release create "$TAG" --title "$TAG" --notes "" 2>/dev/null || true
|
||||||
gh release create "${{ github.ref_name }}" --title "${{ github.ref_name }}" --notes "" &&
|
gh release upload "$TAG" \
|
||||||
gh release upload "${{ github.ref_name }}" \
|
|
||||||
"lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" --clobber
|
"lapctl-${{ steps.version.outputs.version }}-x86_64.tar.gz" --clobber
|
||||||
Reference in new issue
Block a user