Skip to content

Build/release

Build/release #6

Workflow file for this run

name: Build/release
on:
push:
branches:
- test
paths:
- 'src/**'
workflow_dispatch:
permissions:
contents: write
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: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages # default: gh-pages
publish_dir: ./dist_electron