-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (36 loc) · 1.29 KB
/
publish.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
name: publish to nuget
on:
push:
branches:
- master # Default release branch
jobs:
publish:
name: list on nuget
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
include-prerelease: true
- name: Build the project
run: dotnet build -c Release Snowflake/Snowflake.csproj
- name: Package the project
run: dotnet pack --no-build -c Release Snowflake/Snowflake.csproj -o .
- name: Publish Snowflake.CSharp to NuGet
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: Snowflake/Snowflake.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
PACKAGE_NAME: Snowflake.CSharp
- name: Build the Redis project
run: dotnet build -c Release Snowflake.Redis/Snowflake.Redis.csproj
- name: Package the Redis project
run: dotnet pack --no-build -c Release Snowflake.Redis/Snowflake.Redis.csproj -o .
- name: Publish Snowflake.Redis.CSharp to NuGet
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: Snowflake.Redis/Snowflake.Redis.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
PACKAGE_NAME: Snowflake.Redis.CSharp