Skip to content

v5.0.0

v5.0.0 #170

Workflow file for this run

name: Publish NuGet
on:
release:
types: [published]
jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore src/SpocR.csproj
- name: Build
run: dotnet build src/SpocR.csproj --configuration Release --no-restore
- name: Test
run: dotnet test src/SpocR.csproj --no-restore --verbosity normal
# Publish
- name: publish on version change
id: publish_nuget
uses: alirezanet/publish-nuget@v3.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: src/SpocR.csproj
# API key to authenticate with NuGet server
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
# Flag to toggle git tagging, enabled by default
TAG_COMMIT: true
# Format of the git tag, [*] gets replaced with actual version
TAG_FORMAT: v*