Skip to content

Add FromDefault source generator #58

Add FromDefault source generator

Add FromDefault source generator #58

name: Publish Nuget Package
on:
push:
branches:
- main
jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0'
# Publish
- name: publish on version change
id: publish_nuget
uses: rohith/publish-nuget@v2
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: 'ManualDi.Main/ManualDi.Main.csproj'
# Regex pattern to extract version info in a capturing group
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
# Flag to toggle git tagging, enabled by default
TAG_COMMIT: true
# Format of the git tag, [*] gets replaced with actual version
TAG_FORMAT: v*
# API key to authenticate with NuGet server
NUGET_KEY: ${{secrets.NUGET_API_KEY}}