From 74471ef9e1be1749303d4cbb1871c99ccada824e Mon Sep 17 00:00:00 2001 From: Byron Mayne Date: Fri, 27 Oct 2023 21:54:21 -0400 Subject: [PATCH] Updated the ci/cd versioning --- .github/workflows/publish.yml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ed78e69..988b487 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,10 @@ name: Release on: - workflow_dispatch: push: + branches: + - master tags: - -'v*' + - 'v[0-9]+.[0-9]+.[0-9]+' env: SOLUTION_PATH: ./src/SourceGenerator.Foundations.sln jobs: @@ -43,32 +44,17 @@ jobs: with: # Filepath of the project to be packaged, relative to root of repository PROJECT_FILE_PATH: $env:PROJECT_PATH - # Platform target to compile (default is empty/AnyCPU) BUILD_PLATFORM: x64 # NuGet package id, used for version detection & defaults to project name PACKAGE_NAME: SourceGenerator.Foundations - - # Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH - # VERSION_FILE_PATH: Directory.Build.props - - # Regex pattern to extract version info in a capturing group - # VERSION_REGEX: ^\s*(.*)<\/Version>\s*$ - - # Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX - # VERSION_STATIC: 1.0.0 - # Flag to toggle git tagging, enabled by default TAG_COMMIT: true - # Format of the git tag, [*] gets replaced with actual version - TAG_FORMAT: v* - + TAG_FORMAT: '*' # API key to authenticate with NuGet server NUGET_KEY: ${{secrets.NUGET_API_KEY}} - # NuGet server uri hosting the packages, defaults to https://api.nuget.org NUGET_SOURCE: https://api.nuget.org - # Flag to toggle pushing symbols along with nuget package to the server, disabled by default INCLUDE_SYMBOLS: true