-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 854 Bytes
/
cd-core.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
name: Core CD
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
publish:
name: Pack & publish
runs-on: ubuntu-latest
if: contains(github.event.release.name, 'core')
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install .NET SDK 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Pack
run: dotnet pack -c Release -o nupkgs
working-directory: ./src/DomainVerifier
- name: Publish NuGet package
run: dotnet nuget push ./nupkgs/*.nupkg --source $NUGET_API_URL --api-key $NUGET_API_KEY --skip-duplicate
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
NUGET_API_URL: https://api.nuget.org/v3/index.json
working-directory: ./src/DomainVerifier