Skip to content

Commit a29a89b

Browse files
committed
Added nuget setup action to release-package.yml
1 parent d20408d commit a29a89b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release-package.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
env:
8-
NUGET_API_KEY:
8+
NUGET_API_KEY: oy2b5rtpxedtgjhfzb5qxmv737u34pkerpviyrwczbrhgm
99

1010
jobs:
1111
release-serviurtium-core:
@@ -31,6 +31,11 @@ jobs:
3131
# id: semantic_version
3232
# with:
3333
# format: "${major}.${minor}.${patch}-dev.{increment}"
34+
35+
- uses: nuget/setup-nuget@v1
36+
with:
37+
nuget-api-key: ${{ NUGET_API_KEY }}
38+
nuget-version: '5.x'
3439
- name: Dump GitHub context
3540
env:
3641
GITHUB_CONTEXT: ${{ toJSON(github) }}
@@ -43,8 +48,8 @@ jobs:
4348
- name: Nuget Pack
4449
env:
4550
VERSION: ${{ steps.extract-version.outputs.result }}
46-
run: dotnet pack ./Servirtium.Core/Servirtium.Core.csproj --configuration Release /p:Version=${VERSION} --no-build --output .
51+
run: nuget pack ./Servirtium.Core/Servirtium.Core.csproj --configuration Release /p:Version=${VERSION} --no-build --output .
4752

4853
- name: Nuget Push
49-
run: dotnet push Servirtium.Core.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_API_KEY}
54+
run: nuget push Servirtium.Core.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_API_KEY}
5055

0 commit comments

Comments
 (0)