1.3.0-pre.1 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |