Skip to content

Build and release packages #107

Build and release packages

Build and release packages #107

name: Build and release packages
on: workflow_dispatch
jobs:
build-packages:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, ubuntu-latest, windows-2019]
steps:
- name: Check out Git repository
uses: actions/checkout@v4.1.7
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm i -g npm@10
- name: Electron Builder Action(Using Node 20)
uses: vingeraycn/action-electron-builder@v1.0.1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: true
build_script_name: 'compile'