-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (26 loc) · 1.07 KB
/
blank.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
name: Build Calculator
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Get Certificate from secret
env:
encoded_cert: ${{ secrets.encoded_cert }}
cert_password: ${{ secrets.cert_password }}
- run: |
[System.IO.File]::WriteAllBytes("$pwd\cert.pfx", [Convert]::FromBase64String($env:encoded_cert))
- name: Build Project
run: |
msbuild /t:build -restore App1.sln /p:Platform="x64|arm64" /p:Configuration="Release" /p:AppxBundle="Always" /p:AppxBundlePlatforms="x64|arm64" /p:AppxPackageDir="$pwd\build" /p:UapAppxPackageBuildMode="SideloadOnly" /p:AppxPackageSigningEnabled="true" /p:PackageCertificateThumbprint="" /p:PackageCertificateKeyFile="$pwd\cert.pfx" /p:PackageCertificatePassword=$env:cert_password
- name: Upload artifacts
uses: actions/[email protected]
with:
name: calculator
path: build\*_Test\*