-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (71 loc) · 2.09 KB
/
node.js.yml
File metadata and controls
73 lines (71 loc) · 2.09 KB
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
name: TACT Building
on:
push:
tags:
- v* # Push events to v* tags
workflow_dispatch:
jobs:
Deploy:
name: 'Build with NodeJS ${{ matrix.node_version }} for ${{ matrix.os }}'
runs-on: '${{ matrix.os }}'
continue-on-error: true
strategy:
fail-fast: false
matrix:
node_version: ['16.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
env:
# CSC_IDENTITY_AUTO_DISCOVERY: false
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
TACT_CRYPT_AES_PASSWORD: ${{ secrets.TACT_CRYPT_AES_PASSWORD }}
GH_TOKEN: ${{ secrets.github_token }}
steps:
- name: Check out Git repository
uses: actions/checkout@v3
# - name: Install libusb
# if: runner.os == 'Linux'
# run: |
# sudo apt-get update
# sudo apt-get install libusb-1.0-0-dev
# sudo apt-get install libudev-dev
# shell: bash
- name: Disable Code Signing on macOS and Linux
if: runner.os != 'Windows'
run: export CSC_IDENTITY_AUTO_DISCOVERY=false
shell: bash
- name: 'Use Node.js ${{ matrix.node_version }}'
uses: actions/setup-node@v3
with:
node-version: '${{ matrix.node_version }}'
- name: Install Dependencies
run: npm install
shell: bash
- name: Decrypt and Prepare the Build
run: |
npm run decrypt
npm run unpack
shell: bash
- name: Build/Release Electron app
env:
DEBUG: electron-builder
run: npm run release
shell: bash
- name: List Output
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
ls ./out/
else
ls -al ./out/
fi
shell: bash
- name: Upload Artifact
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v3
with:
name: '${{ runner.os }}-build'
if-no-files-found: ignore
path: |
./out/
!./out/*unpacked
!./out/mac/