Skip to content

Commit

Permalink
ci: call electron-builder directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed Mar 1, 2023
1 parent f4a9ee1 commit 46b4951
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: push

env:
NODE_ENV: production
ADBLOCK: 1

jobs:
release:
Expand All @@ -12,6 +13,11 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
platform: linux
- os: windows-latest
platform: windows

steps:
- name: Check out Git repository
Expand All @@ -20,11 +26,15 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: "18"

- name: Build/release Electron app
uses: coparse-inc/[email protected]
with:
github_token: ${{ secrets.github_token }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}

- name: Install Node packages
run: npm ci --include=dev

- name: Build App
run: npm run build --if-present

- name: Pack App
run: npx electron-builder --${{ matrix.platform }} --publish ${{ startsWith(github.ref, 'refs/tags/v') && 'always' || 'never'}}
env:
GH_TOKEN: ${{ secrets.github_token }}

0 comments on commit 46b4951

Please sign in to comment.