File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Release USP
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ build-and-release :
10+ runs-on : windows-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Setup .NET SDK
17+ uses : actions/setup-dotnet@v4
18+ with :
19+ dotnet-version : ' 9.0.x'
20+
21+ - name : Restore dependencies
22+ run : dotnet restore OTAPI.UnifiedServerProcess/src/OTAPI.UnifiedServerProcess/OTAPI.UnifiedServerProcess.csproj
23+
24+ - name : Build project
25+ run : dotnet build OTAPI.UnifiedServerProcess/src/OTAPI.UnifiedServerProcess/OTAPI.UnifiedServerProcess.csproj --configuration Release
26+
27+ - name : Run compiled EXE
28+ run : |
29+ cd OTAPI.UnifiedServerProcess/src/OTAPI.UnifiedServerProcess/bin/Release/net9.0
30+ .\OTAPI.UnifiedServerProcess.exe
31+
32+ - name : Upload output directory as Release asset
33+ uses : softprops/action-gh-release@v2
34+ with :
35+ files : OTAPI.UnifiedServerProcess/src/OTAPI.UnifiedServerProcess/bin/Release/net9.0/output/**
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments