Skip to content

refactor: overhaul request engine with Undici and modularize main pro… #44

refactor: overhaul request engine with Undici and modularize main pro…

refactor: overhaul request engine with Undici and modularize main pro… #44

Workflow file for this run

name: Build and Release
on:
push:
branches:
- master
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
defaults:
run:
shell: bash
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: npm install --legacy-peer-deps
env:
npm_config_audit: false
npm_config_fund: false
- name: Build Assets
run: npm run build
- name: Build and Publish Electron App
run: npx electron-builder build --publish always
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# On macOS, code signing is required for auto-updates.
# For Windows, it's highly recommended.
# Set these secrets in GitHub if you have certificates:
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
# CSC_LINK: ${{ secrets.CSC_LINK }}
# CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}