-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.05 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
name: Build and Upload Artifacts
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-dotnet-${{ hashFiles('**/LCAmmoCheck.csproj') }}
- name: Build and Publish
run: |
dotnet restore
dotnet build LCAmmoCheck/LCAmmoCheck.csproj -c Release --output ./publish --no-restore
dotnet publish LCAmmoCheck/LCAmmoCheck.csproj -c Release --output ./publish --no-restore
- name: Upload artifact (dll)
uses: actions/upload-artifact@v4
with:
name: DLL-Release
path: ./publish/LCAmmoCheck.dll
- name: Upload artifact (Thunderstore)
uses: actions/upload-artifact@v4
with:
name: Thunderstore-Release
path: ./publish/LCAmmoCheck-*.zip