fix(ci): Use gh CLI for atomic release creation

Replace softprops/action-gh-release with gh CLI to create releases
and upload assets in a single atomic operation. This prevents issues
with repository rules that make releases immutable immediately,
which was causing asset upload failures.

Previous error:
- Release created successfully but became immutable
- Asset upload failed with "Cannot upload assets to an immutable release"

Solution:
- gh release create uploads all assets in one operation
- Avoids the gap between release creation and asset upload

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
torlando-tech 2025-11-10 14:46:22 -05:00
commit bb89096e95

View file

@ -326,17 +326,13 @@ jobs:
name: release-notes
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.validate.outputs.tag }}
name: "BLE-Reticulum ${{ needs.validate.outputs.tag }}"
body_path: RELEASE_NOTES.md
draft: false
prerelease: false
files: |
release-artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ needs.validate.outputs.tag }}" \
release-artifacts/* \
--title "BLE-Reticulum ${{ needs.validate.outputs.tag }}" \
--notes-file RELEASE_NOTES.md
- name: Release summary
run: |