Skip to content

7.0.0-pre.3

7.0.0-pre.3 #20

name: Push NuGet Packages
on:
release:
types: [published]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
- name: Set up Nuget
uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
- name: Get package version
id: getPackageVersion
run: echo VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT
shell: bash
- name: Build
run: dotnet build -c Release -p:Version=${{ steps.getPackageVersion.outputs.VERSION }}
working-directory: ./src
- name: Push packages
run: nuget push "**/*.nupkg" -Source nuget.org
working-directory: ./src