Skip to content

Merge pull request #18 from FRACerqueira/v1.0.4 #6

Merge pull request #18 from FRACerqueira/v1.0.4

Merge pull request #18 from FRACerqueira/v1.0.4 #6

Workflow file for this run

name: Publish
on:
push:
tags: [ v* ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x' # SDK Version to use.
- name: Setup Version
id: setup_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
- name: Pack NuGet Package
run: dotnet pack Src/PipeAndFilter.csproj -c Release -o ./dist -p:Version=${{ steps.setup_version.outputs.VERSION }}
- name: Publish
run: dotnet nuget push dist/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json