feat: add win release workflow

This commit is contained in:
夜鹰 2022-05-26 13:51:44 +08:00 committed by GitHub
parent 58b8264bd6
commit 12289e2bb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

38
.github/workflows/release-win.yml vendored Normal file
View File

@ -0,0 +1,38 @@
# release.yml
# workflow 's name
name: Build electron App for Win
on:
push:
branches: ['main']
# Workflow's jobs
jobs:
# job's id
release:
# job's name
name: build and release electron app
# the type of machine to run the job on
runs-on: ${{ matrix.os }}
# create a build matrix for jobs
strategy:
matrix:
os:
- windows-latest
# create steps
steps:
# step1: check out repository
- name: Check out git repository
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- with:
node-version: 16
registry-url: https://registry.npmjs.org/
# step2: install & build app for win
- name: build windows app
- run: yarn install --frozen-lockfile
- run: yarn release