Skip to content

Update release.yml

Update release.yml #14

Workflow file for this run

name: Release app
on:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
os:
[
# { name: 'linux', image: 'ubuntu-latest' },
# { name: 'windows', image: 'windows-latest' },
{ name: 'macos', image: 'macos-latest' },
]
runs-on: ${{ matrix.os.image }}
steps:
- name: Github checkout
uses: actions/checkout@v4
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node
with:
node-version: 20
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.GH_TOKEN }}
# 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') }}