-
-
Notifications
You must be signed in to change notification settings - Fork 28
38 lines (29 loc) · 852 Bytes
/
package.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
name: package
on:
workflow_dispatch:
jobs:
package:
runs-on: windows-latest
env:
Solution_Name: TF2HUD.Editor.sln
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Setup NuGet
uses: nuget/setup-nuget@v2
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Restore dependencies
run: nuget restore src/TF2HUD.Editor.sln
- name: Publish solution
run: dotnet publish -c Release --output ./publish
working-directory: src/TF2HUD.Editor
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: TF2HUD-Editor
path: D:\a\TF2HUD.Editor\TF2HUD.Editor\src\TF2HUD.Editor\publish\