Skip to content

Commit 348fe96

Browse files
author
liugaowei
committed
Update workflow
1 parent af13d24 commit 348fe96

File tree

2 files changed

+53
-2
lines changed

2 files changed

+53
-2
lines changed

.github/workflows/main.yml renamed to .github/workflows/main-mac.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
matrix:
2424
# [macos-latest, ubuntu-latest, windows-latest]
25-
os: [macos-latest, windows-latest]
25+
os: [macos-latest]
2626

2727
steps:
2828
- name: Checkout Code
@@ -47,5 +47,5 @@ jobs:
4747
uses: actions/upload-artifact@v3
4848
with:
4949
name: tts-vue-${{ matrix. os }}
50-
path: release/
50+
path: release/*/*.dmg
5151
retention-days: 30

.github/workflows/main-win.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths-ignore:
7+
- "**.md"
8+
- "**.spec.js"
9+
- ".idea"
10+
- ".vscode"
11+
- ".dockerignore"
12+
- "Dockerfile"
13+
- ".gitignore"
14+
- ".github/**"
15+
- "!.github/workflows/main.yml"
16+
workflow_dispatch:
17+
18+
jobs:
19+
build:
20+
runs-on: ${{ matrix.os }}
21+
22+
strategy:
23+
matrix:
24+
# [macos-latest, ubuntu-latest, windows-latest]
25+
os: [windows-latest]
26+
27+
steps:
28+
- name: Checkout Code
29+
uses: actions/checkout@v2
30+
with:
31+
fetch-depth: 0
32+
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v2
35+
with:
36+
node-version: 14
37+
38+
- name: Install Dependencies
39+
run: npm install
40+
41+
- name: Build Release Files
42+
run: npm run build
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Upload Artifact
47+
uses: actions/upload-artifact@v3
48+
with:
49+
name: tts-vue-${{ matrix. os }}
50+
path: release/*/*.exe
51+
retention-days: 30

0 commit comments

Comments
 (0)