Skip to content

1.3.0-pre.1

1.3.0-pre.1 #2

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