-
-
Notifications
You must be signed in to change notification settings - Fork 11
80 lines (71 loc) · 2.55 KB
/
electron-all-build.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Build WowUp Electron All
on:
# - push
workflow_dispatch:
jobs:
# create-release:
# name: Create Release
# runs-on: ubuntu-latest
# steps:
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: true
# prerelease: true
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest,"macos-11"]
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Inject Token
env:
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
run: |
cd ./wowup-electron
node ./inject-token.js
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Build Linux App
if: matrix.os == 'ubuntu-latest'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
run: |
cd ./wowup-electron
npm ci
npm run electron:publish:vanilla
- name: Build Mac App
if: matrix.os == 'macos-11'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
CSC_LINK: ${{ secrets.MACOS_CERT }}
CSC_KEY_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}
NOTARIZE_APPLE_ID: ${{ secrets.NOTARIZE_APPLE_ID }}
NOTARIZE_APPLE_PASSWORD: ${{ secrets.NOTARIZE_APPLE_PASSWORD }}
NOTARIZE_APPLE_TEAM_ID: ${{ secrets.NOTARIZE_APPLE_TEAM_ID }}
run: |
cd ./wowup-electron
npm ci
npm run electron:publish:vanilla
- name: Build Windows App
if: matrix.os == 'windows-latest'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
CSC_LINK: ${{ secrets.WINDOWS_CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.WINDOWS_CSC_KEY_PASSWORD }}
run: cd ./wowup-electron && npm ci && npm run electron:publish