Skip to content

Commit 280db66

Browse files
committed
Use Action to Release
`gh` cli isn't available in our Ubuntu container, an action will be easier than installing it.
1 parent 32a5c12 commit 280db66

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
type: string
99
required: false
1010

11+
permissions:
12+
contents: write
13+
1114
jobs:
1215
build-ghostty:
1316
name: Build Ghostty
@@ -30,10 +33,10 @@ jobs:
3033

3134
- name: Create Release
3235
if: inputs.release_version != ''
33-
run: |
34-
if ! head -n 1 debian/changelog | grep -q '${{ inputs.release_version }}'; then
35-
echo "::error::Release version does not match changelog."
36-
exit 1
37-
fi
38-
gh release create "${{ inputs.release_version }}" -d ghostty_*.deb
36+
uses: softprops/action-gh-release@v2
37+
with:
38+
draft: true
39+
files: ghostty_*.deb
40+
tag_name: ${{ inputs.release_version }}
41+
fail_on_unmatched_files: true
3942

0 commit comments

Comments
 (0)