-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (39 loc) · 1.05 KB
/
nuget.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
37
38
39
40
41
42
43
44
45
name: NuGet Publish
on:
workflow_dispatch:
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Setup NodeJS
uses: actions/setup-node@v4
- name: Restore NuGet packages
run: |
dotnet restore
nuget-push:
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
project:
- src/Commons
- src/Core
- src/Web
- src/WebApi
- src/Plugins/Hangfire
- src/Plugins/Pdf
steps:
- uses: actions/checkout@v4
- name: Build and publish NuGet package
run: |
npm install --prefix src/Web
cd ${{ matrix.project }}
dotnet build -c release
dotnet pack -c release --output="nuget"
cd nuget
dotnet nuget push "*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate