Skip to content

Apple signing and noterize #33

Apple signing and noterize

Apple signing and noterize #33

name: Release Electron
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [22.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
env:
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
APPLE_API_KEY_ISSUER: ${{ secrets.APPLE_API_KEY_ISSUER }}
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# Mac certificates and password
mac_certs: ${{ secrets.MAC_CERTS }}
mac_certs_password: ${{ secrets.MAC_CERTS_PASSWORD }}
# Windows certificate and password
#win_certs: ${{ secrets.WIN_CERTS }}
#win_certs_password: ${{ secrets.WIN_CERTS_PASSWORD }}
# 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