Skip to content

Commit 5eb6df1

Browse files
authored
Create dotnet-core.yml (#3)
* Create dotnet-core.yml * Update dotnet-core.yml * Update dotnet-core.yml * Update dotnet-core.yml * deploy to nuget * Update dotnet-core.yml * Update dotnet-core.yml * Update dotnet-core.yml * Update dotnet-core.yml * Update dotnet-core.yml * Update dotnet-core.yml * Update dotnet-core.yml * Update dotnet-core.yml * Delete appveyor.yml
1 parent f5cd6b0 commit 5eb6df1

File tree

2 files changed

+29
-31
lines changed

2 files changed

+29
-31
lines changed

.github/workflows/dotnet-core.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

appveyor.yml

-31
This file was deleted.

0 commit comments

Comments
 (0)