mirror of
https://github.com/colanode/colanode.git
synced 2025-12-25 16:09:31 +01:00
Update GitHub Actions workflow and forge config for desktop app publishing
This commit is contained in:
3
.github/workflows/publish-app.yml
vendored
3
.github/workflows/publish-app.yml
vendored
@@ -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
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user