WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9513721

Browse files
committed
Fix again :(
1 parent 474488c commit 9513721

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,13 @@ jobs:
4040
- name: Create release
4141
id: create_release
4242
if: steps.check_release.outputs.should_release == 'true'
43+
uses: softprops/action-gh-release@v1
44+
with:
45+
tag_name: ${{ steps.package_version.outputs.version }}
46+
name: ${{ github.repository }} ${{ steps.package_version.outputs.version }}
47+
generate_release_notes: true
4348
env:
4449
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
run: |
46-
UPLOAD_URL=$(gh release create "${{ steps.package_version.outputs.version }}" \
47-
--repo="$GITHUB_REPOSITORY" \
48-
--title="${GITHUB_REPOSITORY#*/} ${{ steps.package_version.outputs.version }}" \
49-
--generate-notes \
50-
--json upload_url \
51-
--jq '.upload_url')
52-
echo "upload_url=$UPLOAD_URL" >> $GITHUB_OUTPUT
5350

5451
upload-release:
5552
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)