Replace softprops/action-gh-release with official gh CLI

https://claude.ai/code/session_01MqEqGhP1guGx5VuFsLaws2
This commit is contained in:
Claude 2026-05-08 16:21:28 +00:00
parent a1cc0874aa
commit 48b52d74e0
No known key found for this signature in database

View file

@ -103,14 +103,19 @@ jobs:
run: find artifacts -type f
- name: Create release
uses: softprops/action-gh-release@v2
with:
name: mdcms ${{ github.ref_name }}
draft: false
prerelease: ${{ contains(github.ref_name, '-') }}
generate_release_notes: true
files: |
artifacts/mdcms-linux-amd64/mdcms-linux-amd64
artifacts/mdcms-macos-arm64/mdcms-macos-arm64
artifacts/mdcms-windows-amd64/mdcms-windows-amd64.exe
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PRERELEASE=""
if [[ "${{ github.ref_name }}" == *"-"* ]]; then
PRERELEASE="--prerelease"
fi
gh release create "${{ github.ref_name }}" \
--repo "${{ github.repository }}" \
--title "mdcms ${{ github.ref_name }}" \
--generate-notes \
$PRERELEASE \
artifacts/mdcms-linux-amd64/mdcms-linux-amd64 \
artifacts/mdcms-macos-arm64/mdcms-macos-arm64 \
artifacts/mdcms-windows-amd64/mdcms-windows-amd64.exe \
artifacts/deb-package/*.deb