Skip to content

Commit fada655

Browse files
committed
Use gh CLI for creating releases instead of deprecated action
Co-Authored-By: BitCode <https://github.com/sazid/bitcode>
1 parent 39d7db2 commit fada655

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,17 @@ jobs:
8181
cd artifacts
8282
find . -type f | sort | xargs sha256sum > checksums.txt
8383
84-
- name: Create Release
85-
uses: softprops/action-gh-release@v3
86-
with:
87-
files: |
88-
artifacts/bitcode-*
89-
artifacts/checksums.txt
90-
generate_release_notes: true
91-
draft: false
84+
- name: Create GitHub Release
9285
env:
9386
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
run: |
88+
VERSION=${GITHUB_REF#refs/tags/v}
89+
90+
# Create release
91+
gh release create "v${VERSION}" \
92+
--title "BitCode v${VERSION}" \
93+
--generate-notes \
94+
artifacts/*
95+
96+
# Upload checksums
97+
gh release upload "v${VERSION}" artifacts/checksums.txt

0 commit comments

Comments
 (0)