Skip to content

Commit 0379b27

Browse files
committed
feat: add workflows
1 parent e4f5322 commit 0379b27

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 }}

0 commit comments

Comments
 (0)