Skip to content

Commit 19c8559

Browse files
author
Nicholas Bergesen
committed
Put create release in its own job
1 parent 8cc7d51 commit 19c8559

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/PublishNugetPackage.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
dotnet-version: 6.0.x
1919
- run: dotnet restore
2020
- run: dotnet test UnitTests/UnitTests.csproj
21-
Publish-Nuget:
21+
22+
Publish:
2223
needs: Test
2324
runs-on: windows-latest
2425
steps:
@@ -33,6 +34,11 @@ jobs:
3334
run: dotnet pack -c Release
3435
- name: Push to Nuget
3536
run: dotnet nuget push ./Nick.RobotsParser/bin/Release/Nick.RobotsParser.2.0.4.nupkg --api-key ${{ secrets.NUGETAPIKEY }} -s https://api.nuget.org/v3/index.json
37+
38+
Create_Release:
39+
needs: Test
40+
runs-on: windows-latest
41+
steps:
3642
- name: Create Release
3743
id: create_release
3844
uses: actions/create-release@v1

0 commit comments

Comments
 (0)