feat: electron-updater support #7
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 | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'src/**' | |
workflow_dispatch: | |
jobs: | |
mac: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 8.x | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
registry-url: 'https://registry.npmjs.org/' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i | |
- name: build mac Electron app | |
run: pnpm electron:build:mac | |
- name: Upload File | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mac | |
path: dist_electron |