-
Notifications
You must be signed in to change notification settings - Fork 133
65 lines (63 loc) · 2.18 KB
/
dotnet.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
name: Stable Development Build
on:
push:
paths:
- SBRW.Launcher.RunTime/InsiderKit/**
branches:
- development
- Net.Standard
pull_request:
paths:
- SBRW.Launcher.RunTime/InsiderKit/**
branches:
- development
- Net.Standard
jobs:
build:
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Branch Checkout
uses: actions/[email protected]
- name: Custom Root Authority
env:
Root_Authority: ${{ secrets.ROOT_CA }}
if: env.Root_Authority != null
run: |
New-Item -ItemType directory -Path Keys
Set-Content -Path "Keys\Public.txt" -Value "{env:Root_Authority}"
certutil -decode "Keys\Public.txt" "Keys\Public.crt"
certutil -addstore -f "CCP" "Keys\Public.crt"
- name: Private Code Sign Certificate
env:
Code_Sign_Certificate: ${{ secrets.PRIVATE_CODE_SIGN_CRT }}
if: env.Code_Sign_Certificate != null
run: |
Set-Content -Path "Keys\Private.txt" -Value "${env:Code_Sign_Certificate}"
certutil -decode "Keys\Private.txt" "Keys\Launcher.p12"
- name: Set Custom NuGet Packages
run: |
dotnet nuget add source "https://nuget.pkg.github.com/DavidCarbon-SBRW/index.json" -n "SBRW Launcher Libraries" -u ${env:UserName} -p ${env:Password} --store-password-in-clear-text
env:
UserName: ${{ github.repository_owner }}
Password: ${{ secrets.GITHUB_TOKEN }}
- name: Restore Custom NuGet Packages
run: dotnet restore --ignore-failed-sources
- name: Compile Windows Build
run: dotnet build --configuration Release
- name: Compile Unix Build
run: dotnet build --configuration Release.Unix
- name: Upload Windows Build Artifacts
uses: actions/[email protected]
with:
name: Release
path: |
${{ github.workspace }}/SBRW.Launcher.Net/bin/Release/*
if-no-files-found: error
- name: Upload Unix Build Artifacts
uses: actions/[email protected]
with:
name: Unix.Release
path: |
${{ github.workspace }}/SBRW.Launcher.Net/bin/Release.Unix/*
if-no-files-found: error