-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 884 Bytes
/
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
name: Publish NuGet Package
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:8.0
steps:
- uses: actions/checkout@v4
- name: publish r0b0t tool
run: |
dotnet restore
dotnet publish -c Release
dotnet pack
dotnet nuget push nupkg/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
working-directory: ./r0b0t
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
- name: publish r0b0t library
run: |
dotnet restore
dotnet publish -c Release
dotnet pack
dotnet nuget push nupkg/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
working-directory: ./R0b0t.Lib
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}