Skip to content

Commit f9e40c6

Browse files
committed
Replace third-party release action with official gh CLI
Use gh release create instead of softprops/action-gh-release to avoid immutable release issues. The gh CLI is pre-installed on GitHub runners and provides more reliable release management.
1 parent 9f86146 commit f9e40c6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,13 @@ jobs:
7676
ls -la release/
7777
7878
- name: Create release
79-
uses: softprops/action-gh-release@v1
80-
with:
81-
files: release/*
82-
body: |
83-
## What's new in this release
79+
env:
80+
GH_TOKEN: ${{ github.token }}
81+
run: |
82+
gh release create ${{ github.ref_name }} \
83+
release/* \
84+
--title "${{ github.ref_name }}" \
85+
--notes "## What's new in this release
8486
8587
Check the [CHANGELOG](CHANGELOG.md) for details.
8688
@@ -92,21 +94,19 @@ jobs:
9294
9395
The binaries are not signed with an Apple Developer certificate. After downloading:
9496
95-
```bash
97+
\`\`\`bash
9698
chmod +x cohort-tracker-macos-*
9799
xattr -d com.apple.quarantine cohort-tracker-macos-*
98100
sudo mv cohort-tracker-macos-* /usr/local/bin/cohort-tracker
99-
```
101+
\`\`\`
100102
101-
The `xattr` command removes the quarantine flag that triggers the Gatekeeper warning.
103+
The \`xattr\` command removes the quarantine flag that triggers the Gatekeeper warning.
102104
103105
**Linux:**
104-
```bash
106+
\`\`\`bash
105107
chmod +x cohort-tracker-linux-amd64
106108
sudo mv cohort-tracker-linux-amd64 /usr/local/bin/cohort-tracker
107-
```
109+
\`\`\`
108110
109111
**Windows:**
110-
Move the .exe to a directory in your PATH.
111-
draft: false
112-
prerelease: false
112+
Move the .exe to a directory in your PATH."

0 commit comments

Comments
 (0)