Skip to content

Commit

Permalink
Added nuget setup action to release-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhand committed Jul 5, 2021
1 parent d20408d commit a29a89b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

env:
NUGET_API_KEY:
NUGET_API_KEY: oy2b5rtpxedtgjhfzb5qxmv737u34pkerpviyrwczbrhgm

jobs:
release-serviurtium-core:
Expand All @@ -31,6 +31,11 @@ jobs:
# id: semantic_version
# with:
# format: "${major}.${minor}.${patch}-dev.{increment}"

- uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ NUGET_API_KEY }}
nuget-version: '5.x'
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
Expand All @@ -43,8 +48,8 @@ jobs:
- name: Nuget Pack
env:
VERSION: ${{ steps.extract-version.outputs.result }}
run: dotnet pack ./Servirtium.Core/Servirtium.Core.csproj --configuration Release /p:Version=${VERSION} --no-build --output .
run: nuget pack ./Servirtium.Core/Servirtium.Core.csproj --configuration Release /p:Version=${VERSION} --no-build --output .

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

0 comments on commit a29a89b

Please sign in to comment.