-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.27 KB
/
package.yml
File metadata and controls
54 lines (44 loc) · 1.27 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
name: Publish to Package Registries
on:
push:
branches:
- main
jobs:
build:
name: Build Package
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@main
with:
dotnet-version: '3.1'
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Pack
run: dotnet pack EntityFrameworkCore.Extensions.TAMS --configuration Release -o finalpackage --no-build
- name: Publish Artifact
uses: actions/upload-artifact@master
with:
name: nupkg
path: finalpackage
deploy:
needs: build
name: Deploy Packages
runs-on: windows-latest
steps:
- name: Setup .NET Core
uses: actions/setup-dotnet@main
with:
dotnet-version: '3.1'
- name: Download Artifact
uses: actions/download-artifact@v1
with:
name: nupkg
- name: Setup NuGet
uses: NuGet/setup-nuget@main
with:
nuget-api-key: ${{ secrets.NUGETORG_API_KEY }}
nuget-version: latest
- name: Push to NuGet
run: dotnet nuget push nupkg\*.nupkg -k ${{ secrets.NUGETORG_API_KEY }} -s https://nuget.org --skip-duplicate