-
Notifications
You must be signed in to change notification settings - Fork 19
70 lines (58 loc) · 1.87 KB
/
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
name: Build, Sign and Publish
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
VERSION: '4.3.${{ github.run_number }}'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Build the app
run: dotnet build --configuration $env:Configuration -p:Version=${{ env.VERSION }} -p:FileVersion=${{ env.VERSION }}
env:
Configuration: ${{ matrix.configuration }}
- name: Sign App Files
uses: GabrielAcostaEngler/[email protected]
with:
certificate: '${{ secrets.BASE64_ENCODED_PFX }}'
cert-password: '${{ secrets.PFX_PASSWORD }}'
cert-sha1: '${{ secrets.CERT_HASH_SHA1 }}'
# path to folder containing files to sign.
folder: 'OotD.Launcher\bin\Release\net9.0-windows7.0'
recursive: true
timestamp-server: 'http://timestamp.digicert.com'
- name: Build Installer
uses: Minionguyjpro/[email protected]
with:
path: "Setup Script.iss"
options: /O+
- name: Sign Installer
uses: GabrielAcostaEngler/[email protected]
with:
certificate: '${{ secrets.BASE64_ENCODED_PFX }}'
cert-password: '${{ secrets.PFX_PASSWORD }}'
cert-sha1: '${{ secrets.CERT_HASH_SHA1 }}'
# path to folder containing files to sign.
folder: 'ServerStaging'
recursive: false
timestamp-server: 'http://timestamp.digicert.com'
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Installer
path: ServerStaging