-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 997 Bytes
/
cd-extensions.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: Extensions CD
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
publish:
name: Pack & publish
runs-on: ubuntu-latest
if: contains(github.event.release.name, 'extensions')
strategy:
matrix:
dotnet-version: [ '8.0.x', '7.0.x', '6.0.x' ]
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Install .NET SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Pack
run: dotnet pack -c Release -o nupkgs
working-directory: ./src/DomainVerifier.Extensions
- 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.Extensions