File tree 2 files changed +29
-31
lines changed
2 files changed +29
-31
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to Nuget
2
+
3
+ on :
4
+ release :
5
+ types : [ published ]
6
+
7
+ jobs :
8
+ build :
9
+
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Setup .NET Core
15
+ uses : actions/setup-dotnet@v1
16
+ with :
17
+ dotnet-version : 5.0.100
18
+ - name : Install dependencies
19
+ run : dotnet restore
20
+ - name : Packing Nuget
21
+ run : dotnet pack --configuration Release --no-restore /p:Version=${{ github.event.release.tag_name }} /p:PackageReleaseNotes="See https://github.com/leonibr/community-extensions-cache-postgres/releases/tag/${{ github.event.release.tag_name }}"
22
+ working-directory : ./Extensions.Caching.PostgreSql/
23
+ - name : Archive NuGet Package
24
+ uses : actions/upload-artifact@v1
25
+ with :
26
+ name : Extensions.Caching.PostgreSql
27
+ path : ./Extensions.Caching.PostgreSql/bin/Release/Community.Microsoft.Extensions.Caching.PostgreSql.${{ github.event.release.tag_name }}.nupkg
28
+ - name : Deploy to Nuget
29
+ run : dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_SECRET }} --source https://api.nuget.org/v3/index.json --no-symbols true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments