Skip to content

Merge pull request #206 from sircharlo/dependabot/npm_and_yarn/fortaw… #288

Merge pull request #206 from sircharlo/dependabot/npm_and_yarn/fortaw…

Merge pull request #206 from sircharlo/dependabot/npm_and_yarn/fortaw… #288

Workflow file for this run

name: Build/release
on:
workflow_dispatch:
pull_request:
branches: [main, master]
push:
branches: [main, master]
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v2.3.4
- name: Get latest CMake and ninja
uses: lukka/get-cmake@latest
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v2.1.5
with:
node-version: 14
check-latest: true
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1.6.0
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
args: "-p always"
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}