mirror of
https://github.com/NoCrypt/migu.git
synced 2026-01-11 20:10:22 +00:00
49 lines
1 KiB
YAML
49 lines
1 KiB
YAML
name: Electron Build and Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'master'
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '**.yml'
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup PNPM
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9.15.4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install Setuptools for Python (macOS only)
|
|
if: matrix.os == 'macos-latest'
|
|
run: pip3 install setuptools --break-system-packages
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
cd electron
|
|
pnpm install --frozen-lockfile
|
|
|
|
- name: Build and Publish
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
cd electron
|
|
npm run publish
|