forked from TitleOS/QuantumTunnel
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.16 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
name: .NET
on:
push:
pull_request:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Upload artifacts (dotnet)
uses: actions/upload-artifact@v3
with:
name: QuantumTunnel-dotnet
path: bin/Release/net7.0/*
- name: Build (standalone)
run: dotnet publish -c Release --self-contained -r win-x64 -p:PublishSingleFile=true
- name: Prepare standalone release
run: |
mkdir release
xcopy README.md release\
xcopy bin\Release\net7.0\win-x64\publish\QuantumTunnel.exe release\
7z a -tzip QuantumTunnel.zip .\release\*
- name: Upload artifacts (standalone)
uses: actions/upload-artifact@v3
with:
name: QuantumTunnel
path: |
release/*
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: QuantumTunnel.zip