-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1.11 KB
/
main.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
42
43
44
name: CI
on: [ "push", "pull_request" ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/cache@v2
with:
path: |
~/.nuget/packages
~/.cache/bepinex
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.x
- name: Run the Cake script
uses: cake-build/cake-action@v1
with:
verbosity: Diagnostic
- uses: actions/upload-artifact@v2
with:
name: Laboratory.dll
path: Laboratory/bin/Release/net6.0/Laboratory.dll
- uses: actions/upload-artifact@v2
with:
name: Laboratory.nupkg
path: Laboratory/bin/Release/Laboratory.*.nupkg
- name: Push
run: dotnet nuget push **/bin/Release/*.nupkg --source https://nuget.pkg.github.com/Among-Us-Modding/index.json --api-key ${{ secrets.GITHUB_TOKEN }}