change autoupdater to github releases, fix delays in stopping timer #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build/release Electron app | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
include: | |
- os: macos-latest | |
platform: mac | |
- os: ubuntu-latest | |
platform: linux | |
- os: windows-latest | |
platform: windows | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Install Snapcraft | |
uses: samuelmeuli/action-snapcraft@v2 | |
if: ${{ matrix.platform == 'linux' }} | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Install dependencies | |
run: npm run build | |
- name: Run Electron Builder | |
if: ${{ matrix.platform != 'mac' }} | |
run: | | |
npx electron-builder --${{ matrix.platform }} --publish always | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Run Electron Builder | |
if: ${{ matrix.platform == 'mac' }} | |
run: | | |
echo "$API_KEY" > apple.p8 | |
npx electron-builder --${{ matrix.platform }} --publish always | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
CSC_LINK: ${{ secrets.MAC_CERTS }} | |
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }} | |
API_KEY: ${{ secrets.API_KEY }} | |
APPLE_API_KEY: apple.p8 | |
APPLE_API_KEY_ID: ${{ secrets.API_KEY_ID }} | |
APPLE_API_ISSUER: ${{ secrets.API_KEY_ISSUER_ID }} |