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