-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 1.02 KB
/
nuget.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
name: NuGet Publish
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Init git submodules
run: git submodule init && git submodule update
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0'
- name: Install dependencies
run: dotnet restore
- name: Publish MaxLib.WebServer NuGet
uses: brandedoutcast/[email protected]
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: MaxLib.WebServer/MaxLib.WebServer.csproj
# NuGet package id, used for version detection & defaults to project name
PACKAGE_NAME: MaxLib.WebServer
# API key to authenticate with NuGet server
NUGET_KEY: ${{ secrets.NUGET_PUSH_KEY }}
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH:
VERSION_FILE_PATH: MaxLib.WebServer/MaxLib.WebServer.csproj.include