Skip to content

Refactor electron-build.yaml: Add ubuntu-latest to build matrix and u… #96

Refactor electron-build.yaml: Add ubuntu-latest to build matrix and u…

Refactor electron-build.yaml: Add ubuntu-latest to build matrix and u… #96

name: electron-build
on: push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [18.x]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set up pnpm
uses: pnpm/action-setup@v4
- name: Install Dependencies
run: pnpm install --prefer-offline --no-frozen-lockfile
- name: Build Electron App
run: pnpm run build
- name: Build and publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pnpm run electron-builder --win --publish always --config.asar=false --config.asarUnpack=**
shell: powershell
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./release/**/*.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}