Skip to content

Commit 1b2ce09

Browse files
Update release.yml
1 parent fb27f29 commit 1b2ce09

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
1-
name: Release to NuGet
1+
name: nuget
22

33
on:
44
release:
55
types: [published]
66

7+
78
jobs:
89
build:
910
runs-on: windows-latest
1011
timeout-minutes: 5
12+
1113
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v2
14-
- name: Setup .NET SDK
15-
uses: actions/setup-dotnet@v1
16-
- name: Build
17-
run: dotnet build -c Release
18-
- name: Test
19-
run: dotnet test -c Release --no-build
20-
- name: Pack nugets
21-
run: dotnet pack -c Release --no-build --output .
22-
- name: Push to NuGet
23-
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
14+
- uses: actions/checkout@v2
15+
16+
- name: setup-msbuild
17+
uses: microsoft/setup-msbuild@v1.3.1
18+
19+
- name: Setup NuGet.exe for use with actions
20+
uses: NuGet/setup-nuget@v1.2.0
21+
22+
- name: Build
23+
run: dotnet build -c Release
24+
- name: Test
25+
run: dotnet test -c Release --no-build
26+
- name: Pack nugets
27+
run: dotnet pack -c Release --no-build --output .
28+
- name: Push to NuGet
29+
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)