Skip to content

Refactor maker configurations and github workflow #56

Refactor maker configurations and github workflow

Refactor maker configurations and github workflow #56

Workflow file for this run

name: Release
on:
push:
branches:
- release
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
arch: [x64, arm64]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Set up Wine and Mono for Windows build on macOS
if: matrix.os == 'macos-latest'
run: |
brew install --cask wine-stable mono
- name: Build Electron app
run: |
npm run make -- --arch=${{ matrix.arch }}
env:
ELECTRON_CACHE: ${{ runner.temp }}/electron
npm_config_arch: ${{ matrix.arch }}
npm_config_platform: ${{ matrix.os }}
- name: Publish to GitHub Releases
run: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}