add workflows

This commit is contained in:
kuaifan
2021-12-21 16:13:12 +08:00
parent 1430935c7e
commit fb8cf78958
6 changed files with 161 additions and 59 deletions

34
.github/workflows/electron.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Build
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ${{ matrix.os }}
environment: build
strategy:
matrix:
os: [macos-11]
platform: [
build-mac,
build-mac-arm,
build-win
]
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Build
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
run: ./cmd electron ${{ matrix.platform }}