-
Notifications
You must be signed in to change notification settings - Fork 38
29 lines (22 loc) · 850 Bytes
/
Copy pathnuget.yml
File metadata and controls
29 lines (22 loc) · 850 Bytes
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
name: Build and publish NuGet packages
on: workflow_dispatch
jobs:
build-and-publish:
runs-on: ubuntu-latest
env:
NUGET_SOURCE: https://api.nuget.org/v3/index.json
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
strategy:
matrix:
project: [SharpFuzz, SharpFuzz.CommandLine]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0
- name: Build NuGet package for ${{ matrix.project }}
working-directory: src/${{ matrix.project }}
run: dotnet pack --configuration Release --output out/${{ matrix.project }}
- name: Publish NuGet package for ${{ matrix.project }}
working-directory: src/${{ matrix.project }}
run: dotnet nuget push out/${{ matrix.project }}/*.nupkg --source $NUGET_SOURCE --api-key $NUGET_API_KEY