Skip to content

Workflow file for this run

name: Nuget Release
on:
push:
tags:
- "Zwoo.Api.ZRP@v*"
jobs:
zrp:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/Zwoo.Api.ZRP@v*')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "9"
- name: Build
run: dotnet build --configuration Release
- name: Pack
working-directory: zrp/Zwoo.Api.ZRP
run: dotnet pack --configuration Release --no-build --output .
- name: Push
working-directory: zrp/Zwoo.Api.ZRP
run: dotnet nuget push Zwoo.Api.ZRP.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json