Skip to content

Commit

Permalink
Split macOs and Windows builders
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed May 7, 2024
1 parent 6858485 commit 58484b8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Windows and macOS (Manual)
name: Publish macOS (Manual)

on: workflow_dispatch

Expand Down Expand Up @@ -35,5 +35,5 @@ jobs:
command: |
npm run postinstall
npm run build
npm exec electron-builder -- --publish always --win --mac
npm exec electron-builder -- --publish always --mac
on_retry_command: npm cache clean --force
39 changes: 39 additions & 0 deletions .github/workflows/publish-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Windows (Manual)

on: workflow_dispatch

jobs:
publish:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [windows-latest]

steps:
- name: Checkout git repo
uses: actions/checkout@v1

- name: Install Node and NPM
uses: actions/setup-node@v1
with:
node-version: 16
cache: npm

- name: Install dependencies
run: |
npm install --legacy-peer-deps
- name: Publish releases
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: nick-invision/retry@v2.8.2
with:
timeout_minutes: 30
max_attempts: 3
retry_on: error
command: |
npm run postinstall
npm run build
npm exec electron-builder -- --publish always --win
on_retry_command: npm cache clean --force

0 comments on commit 58484b8

Please sign in to comment.