feat: Update container with my needs #56
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: Publish Nuget Package | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
name: build, pack & publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '3.1.x' | |
# 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}} |