Update GitHub Actions workflow and forge config for desktop app publishing

This commit is contained in:
Ylber Gashi
2024-11-17 19:17:23 +01:00
parent e99e7b1658
commit 02fa615494
2 changed files with 19 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ jobs:
- name: Update package.json version
shell: bash
working-directory: apps/desktop
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
npm version ${VERSION} --no-git-tag-version
@@ -49,9 +50,11 @@ jobs:
- name: Build Electron App
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
working-directory: apps/desktop
run: npm run make
- name: Publish Release to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
working-directory: apps/desktop
run: npm run publish

View File

@@ -35,6 +35,22 @@ const config: ForgeConfig = {
new MakerRpm({}),
new MakerDeb({}),
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'colanode',
name: 'colanode'
},
// Publishing options:
// draft=true creates private release for review,
// prerelease=true marks as beta, false=stable/production
prerelease: false,
draft: true
}
}
],
plugins: [
new VitePlugin({
// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.