-
-
Notifications
You must be signed in to change notification settings - Fork 195
64 lines (60 loc) · 1.82 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI Build
on: [push, pull_request]
jobs:
win32:
name: "Build Win32 Installer"
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: package.json info
id: info
uses: jaywcjlove/github-action-package@main
- run: npm ci
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run parcel-build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run electron-build
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
name: Upload Windows Installer
with:
name: twinkle-tray-exe-${{ steps.info.outputs.version }}-${{ github.sha }}
path: dist/*.exe
appx:
name: "Build AppX Packages"
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: package.json info
id: info
uses: jaywcjlove/github-action-package@main
- run: npm ci
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run appx
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
name: Upload x64 AppX
with:
name: twinkle-tray-appx-x64-${{ steps.info.outputs.version }}-${{ github.sha }}
path: dist/*-store.appx
- run: npm run appx-arm64
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
name: Upload ARM64 AppX
with:
name: twinkle-tray-appx-arm64-${{ steps.info.outputs.version }}-${{ github.sha }}
path: dist/*-store-arm64.appx