-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1.13 KB
/
windows.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: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ./Windows/CaptureWolf.sln
- name: Build
run: dotnet build --configuration Release --no-restore ./Windows/CaptureWolf.Form/CaptureWolf.UI.csproj
- name: Zip output
run: |
cd ./Windows/CaptureWolf.UI/bin/Release
7z a output.zip ./*
shell: pwsh
- name: Build Installer
run: dotnet build --configuration Release --no-restore ./Windows/CaptureWolf.Installer/CaptureWolf.Installer.csproj
- name: Zip MSI
run: |
cd ./Windows/CaptureWolf.Installer/bin/Release
7z a installer.zip ./*.msi
shell: pwsh
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: output
path: |
./Windows/CaptureWolf.UI/bin/Release/output.zip
./Windows/CaptureWolf.Installer/bin/Release/installer.zip