Skip to content

Commit 35bc6d0

Browse files
refactor: update upload release artifact step to use gh CLI
Signed-off-by: Immanuel Raj <[email protected]>
1 parent 221deb7 commit 35bc6d0

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/release_on_tag.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ jobs:
5454
echo "=== Plugin zip contents ==="
5555
unzip -l $GITHUB_WORKSPACE/onedesign.zip
5656
57-
- name: Upload Release Artifact
57+
- name: Upload Release Artifact with gh CLI
5858
if: startsWith(github.ref, 'refs/tags/dry') == false && github.ref != 'refs/heads/develop'
59-
uses: softprops/[email protected]
60-
with:
61-
files: |
62-
${{ steps.create-zip.outputs.zip-path }}
63-
token: '${{ github.token }}'
64-
tag_name: ${{ github.ref_name }}
65-
draft: true
66-
generate_release_notes: true
67-
name: OneDesign ${{ github.ref_name }}
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
run: |
62+
gh release view "${{ github.ref_name }}" || \
63+
gh release create "${{ github.ref_name }}" \
64+
--title "OneDesign ${{ github.ref_name }}" \
65+
--notes "" \
66+
--draft
67+
# Upload the artifact
68+
gh release upload "${{ github.ref_name }}" "${{ steps.create-zip.outputs.zip-path }}" --clobber

0 commit comments

Comments
 (0)