mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 11:47:57 +08:00
feat: add win release workflow
This commit is contained in:
parent
58b8264bd6
commit
12289e2bb3
38
.github/workflows/release-win.yml
vendored
Normal file
38
.github/workflows/release-win.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user