Skip to content

4.4.1

4.4.1 #16

name: publish-nuget-packages
on:
release:
types: [published, prereleased]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- run: |
echo "Github ref is ${GITHUB_REF}"
arrTag=(${GITHUB_REF//\// })
VERSION="${arrTag[2]}"
echo "Version: $VERSION"
dotnet pack src/prometheus-net.DotNetRuntime --include-symbols -c "Release" -p:Version=$VERSION --output "build/"
dotnet nuget push "build/prometheus-net.DotNetRuntime.*.symbols.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s "https://api.nuget.org/v3/index.json" -n true