-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (33 loc) · 978 Bytes
/
main.yml
File metadata and controls
40 lines (33 loc) · 978 Bytes
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
name: CI
on: [ "push", "pull_request" ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/cache@v4
with:
path: |
~/.nuget/packages
~/.cache/bepinex
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
- name: Build
run: dotnet build PeasAPI/PeasAPI.csproj --configuration Release
- name: Upload PeasAPI
uses: actions/upload-artifact@v4
with:
name: PeasAPI.dll
path: PeasAPI/bin/Release/net6.0/PeasAPI.dll
- name: Upload PeasAPI.nupkg
uses: actions/upload-artifact@v4
with:
name: PeasAPI.nupkg
path: PeasAPI/bin/Release/PeasAPI-R.*.nupkg