-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.28 KB
/
nuget.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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Publish to Package Registries
on:
release:
types:
- published
workflow_dispatch:
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: '8.0'
- name: Build with dotnet
run: dotnet build TAMS.EfBulk --configuration Release
- name: Pack
run: dotnet pack TAMS.EfBulk --configuration Release -o finalpackage --no-build
- name: Publish Artifact
uses: actions/upload-artifact@main
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: '8.0'
- name: Download Artifact
uses: actions/download-artifact@main
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 -k ${{ secrets.NUGETORG_API_KEY }} -s https://nuget.org --skip-duplicate