Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
asrient committed Nov 20, 2023
1 parent acce63f commit 0e98598
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/desktop-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: App CI

on:
push:
branches: [ "main" ]
tags: [ "v*" ]
tags: [ "v*", "desktop-v*" ]

jobs:
build-and-publish:
Expand Down Expand Up @@ -48,22 +47,18 @@ jobs:
ONEAUTH_SERVER_URL: ${{ secrets.ONEAUTH_SERVER_URL }}
ONEAUTH_APP_ID: ${{ secrets.ONEAUTH_APP_ID }}
NODE_OPTIONS: "--max_old_space_size=4096"
- name: Make app
- name: Publish app
if: matrix.os != 'macos-latest'
run: npm run make:desktop
run: npm run publish:desktop
working-directory: ./apps
env:
NODE_ENV: production
- name: Make app - MacOS
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Publish app - MacOS
if: matrix.os == 'macos-latest'
run: npm run make:desktop:macos
run: npm run publish:desktop:macos
working-directory: ./apps
env:
NODE_ENV: production
NODE_OPTIONS: "--max_old_space_size=4096"
- name: Publish app
run: npm run publish:desktop
working-directory: ./apps
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_ENV: production
NODE_OPTIONS: "--max_old_space_size=4096"
3 changes: 1 addition & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Docker Image CI

on:
push:
branches: [ "main" ]
tags: [ "v*" ]
tags: [ "v*", "server-v*" ]

jobs:
build-server:
Expand Down
4 changes: 2 additions & 2 deletions apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"start:desktop": "npm run build && electron-forge start",
"package:desktop": "electron-forge package",
"make:desktop": "electron-forge make",
"make:desktop:macos": "electron-forge make --arch arm64,x64",
"publish:desktop": "electron-forge publish"
"publish:desktop": "electron-forge publish",
"publish:desktop:macos": "electron-forge publish --arch \"arm64,x64\""
},
"dependencies": {
"ajv": "^8.12.0",
Expand Down

0 comments on commit 0e98598

Please sign in to comment.