-
Notifications
You must be signed in to change notification settings - Fork 10
32 lines (25 loc) · 788 Bytes
/
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
name: CI
on: [ "push", "pull_request" ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.x
- name: Run the Cake script
uses: cake-build/cake-action@v1
with:
verbosity: Diagnostic
- uses: actions/upload-artifact@v3
with:
name: nuget packages
path: ./BepInEx.AssemblyPublicizer*/bin/Release/*.nupkg
- name: Push NuGet package
if: github.ref_type == 'tag'
run: |
dotnet nuget push ./BepInEx.AssemblyPublicizer*/bin/Release/*.nupkg --source ${{ secrets.NUGET_SOURCE }} --api-key ${{ secrets.NUGET_KEY }}