Skip to content

Commit be51fc5

Browse files
committed
Fix electron-builder publish schema error; auto-publish release via gh CLI instead
1 parent 6ee75ca commit be51fc5

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,16 @@ jobs:
4242
run: npm run build:all && npx electron-builder --publish always
4343
env:
4444
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
publish-release:
47+
needs: build
48+
runs-on: ubuntu-latest
49+
steps:
50+
# electron-builder always creates the GitHub release as a draft (its
51+
# config schema doesn't accept "draft: false" as of this app's last
52+
# update) — un-draft it here once every platform has finished
53+
# uploading, so the tag doesn't need a manual "Publish release" click.
54+
- name: Publish the release
55+
env:
56+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
run: gh release edit "${{ github.ref_name }}" --repo "${{ github.repository }}" --draft=false

app/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@
5050
"publish": {
5151
"provider": "github",
5252
"owner": "voidstackloop",
53-
"repo": "modelforge",
54-
"draft": false
53+
"repo": "modelforge"
5554
}
5655
},
5756
"devDependencies": {

0 commit comments

Comments
 (0)