diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 45cb724..9dd2c80 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -5,7 +5,7 @@ on: types: [published] env: - NUGET_API_KEY: + NUGET_API_KEY: oy2b5rtpxedtgjhfzb5qxmv737u34pkerpviyrwczbrhgm jobs: release-serviurtium-core: @@ -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) }} @@ -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}