Skip to content

Release Electron

Release Electron #23

name: Release Electron
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [18.x]
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
defaults:
run:
working-directory: ./cider-app
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Snapcraft
uses: oatear/action-snapcraft@v1
if: startsWith(matrix.os, 'ubuntu')
- name: Build/release Electron app
uses: oatear/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: ${{ startsWith(github.ref, 'refs/tags/v') }}
# set the directory where npm will run
package_root: ./cider-app
build_script_name: electron:compile