Skip to content

Commit 4000a0e

Browse files
committed
Switch GitHub Release step to use gh CLI instead of action
1 parent 197e1aa commit 4000a0e

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,19 @@ jobs:
6464
cache-to: type=gha,mode=max
6565

6666
- name: Create GitHub Release
67-
uses: softprops/action-gh-release@v2
68-
with:
69-
name: Release ${{ steps.version.outputs.VERSION }}
70-
generate_release_notes: true
71-
append_body: true
72-
body: |
73-
74-
## Docker Image
75-
76-
```bash
77-
docker pull ${{ env.DOCKER_REPO }}/${{ env.DOCKER_IMAGE }}:${{ steps.version.outputs.VERSION }}
78-
```
79-
draft: true
80-
prerelease: false
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
run: |
70+
gh release create "v${{ steps.version.outputs.VERSION }}" \
71+
--repo="$GITHUB_REPOSITORY" \
72+
--title="Release ${{ steps.version.outputs.VERSION }}" \
73+
--notes-file <(cat <<'EOF'
74+
## Docker Image
75+
76+
```bash
77+
docker pull ${{ env.DOCKER_REPO }}/${{ env.DOCKER_IMAGE }}:${{ steps.version.outputs.VERSION }}
78+
```
79+
EOF
80+
) \
81+
--generate-notes \
82+
--draft

0 commit comments

Comments
 (0)