-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 1.39 KB
/
publish.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
name: publish packages
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Create NuGet package
run: dotnet pack -c Release /p:Version=${{ github.event.release.tag_name }} /p:PackageReleaseNotes="See https://github.com/suxrobGM/MagicMvvm/releases/tag/${{ github.event.release.tag_name }}"
working-directory: ./src
- name: Archive MagicMvvm.Core Package
uses: actions/upload-artifact@v1
with:
name: Code.Library
path: ./src/MagicMvvm.Core/bin/Release/MagicMvvm.Core.${{ github.event.release.tag_name }}.nupkg
- name: Archive MagicMvvm.Wpf Package
uses: actions/upload-artifact@v1
with:
name: MagicMvvm.Wpf
path: ./src/MagicMvvm.Wpf/bin/Release/MagicMvvm.Wpf.${{ github.event.release.tag_name }}.nupkg
- name: Archive MagicMvvm.Blazor Package
uses: actions/upload-artifact@v1
with:
name: MagicMvvm.Blazor
path: ./src/MagicMvvm.Blazor/bin/Release/MagicMvvm.Blazor.${{ github.event.release.tag_name }}.nupkg
- name: Publish Nuget Package
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --no-symbols true