-
-
Notifications
You must be signed in to change notification settings - Fork 7
31 lines (26 loc) · 974 Bytes
/
release.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
name: Release package
on:
release:
types: [published]
jobs:
release:
name: Release package
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Create package
run: dotnet pack -c Release -p:Version=${{ github.event.release.tag_name }}
- name: Archive package
uses: actions/upload-artifact@v4
with:
name: QuestPDF.Markdown
path: ./package/QuestPDF.Markdown.${{ github.event.release.tag_name }}.nupkg
- name: Publish package (GitHub)
run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.GH_API_KEY }} --source https://nuget.pkg.github.com/christiaanderidder/index.json
- name: Publish package (NuGet)
run: dotnet nuget push ./package/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json