-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (33 loc) · 1.11 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
35
36
37
38
name: Publish NuGet Packages
on:
push:
branches: [ main ]
jobs:
publish:
name: Publish NuGet Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.x.x
- name: Publish NuGet package
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: src/BingChat/BingChat.csproj
PACKAGE_NAME: BingChat
VERSION_FILE_PATH: src/BingChat/BingChat.csproj
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$
TAG_COMMIT: true
TAG_FORMAT: v*
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
- name: Publish CLI
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: src/dotnet-bingchat/dotnet-bingchat.csproj
PACKAGE_NAME: dotnet-bingchat
VERSION_FILE_PATH: src/dotnet-bingchat/dotnet-bingchat.csproj
VERSION_REGEX: ^\s*<PackageVersion>(.*)<\/PackageVersion>\s*$
TAG_COMMIT: false
NUGET_KEY: ${{secrets.NUGET_API_KEY}}