-
Notifications
You must be signed in to change notification settings - Fork 30
49 lines (40 loc) · 1.24 KB
/
windows_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
name: Windows build CI
on:
workflow_call:
push:
branches: [master]
paths-ignore:
- 'landing/**'
- 'docs/**'
- 'keyserver/**'
- 'native/**'
- 'shared/**'
jobs:
build:
name: Build Windows app
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Fix node-gyp
run: python3 -m pip install packaging setuptools
- name: yarn ci-cleaninstall
run: yarn ci-cleaninstall
- name: Save WINDOWS_CERTIFICATE_B64 to file
env:
WINDOWS_CERTIFICATE_B64: ${{secrets.WINDOWS_CERTIFICATE_B64}}
run: echo "$env:WINDOWS_CERTIFICATE_B64" > WINDOWS_CERTIFICATE_B64.b64
- name: Decode Windows certificate
run: certutil -decode WINDOWS_CERTIFICATE_B64.b64 windows_certificate.pfx
- name: Build App
env:
WINDOWS_CERTIFICATE: ${{github.workspace}}\windows_certificate.pfx
WINDOWS_PASSWORD: ${{secrets.WINDOWS_PASSWORD}}
working-directory: './desktop'
run: yarn make
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: windows-artifacts
path: ./desktop/out/make/**/*
if-no-files-found: error
retention-days: 1