File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff 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- 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
You can’t perform that action at this time.
0 commit comments