Skip to content

Commit 4dab666

Browse files
committed
build: Update .NET Core version and deploy to Nuget
1 parent ee14560 commit 4dab666

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@ name: Deploy to Nuget
22

33
on:
44
release:
5-
types: [ published ]
6-
5+
types: [published]
6+
77
jobs:
88
build:
9-
109
runs-on: ubuntu-latest
1110

1211
steps:
13-
- uses: actions/checkout@v2
14-
- name: Setup .NET Core
15-
uses: actions/setup-dotnet@v1
16-
with:
17-
dotnet-version: |
12+
- uses: actions/checkout@v2
13+
- name: Setup .NET Core
14+
uses: actions/setup-dotnet@v1
15+
with:
16+
dotnet-version: |
1817
6.0.x
1918
7.0.x
19+
8.0.x
2020
21-
- name: Install dependencies
22-
run: dotnet restore
23-
- name: Packing Nuget
24-
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 }}"
25-
working-directory: ./Extensions.Caching.PostgreSql/
26-
- name: Archive NuGet Package
27-
uses: actions/upload-artifact@v1
28-
with:
29-
name: Extensions.Caching.PostgreSql
30-
path: ./Extensions.Caching.PostgreSql/bin/Release/Community.Microsoft.Extensions.Caching.PostgreSql.${{ github.event.release.tag_name }}.nupkg
31-
- name: Deploy to Nuget
32-
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_SECRET }} --source https://api.nuget.org/v3/index.json --no-symbols true
21+
- name: Install dependencies
22+
run: dotnet restore
23+
- name: Packing Nuget
24+
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 }}"
25+
working-directory: ./Extensions.Caching.PostgreSql/
26+
- name: Archive NuGet Package
27+
uses: actions/upload-artifact@v1
28+
with:
29+
name: Extensions.Caching.PostgreSql
30+
path: ./Extensions.Caching.PostgreSql/bin/Release/Community.Microsoft.Extensions.Caching.PostgreSql.${{ github.event.release.tag_name }}.nupkg
31+
- name: Deploy to Nuget
32+
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_SECRET }} --source https://api.nuget.org/v3/index.json --no-symbols true

0 commit comments

Comments
 (0)