Skip to content

Commit

Permalink
Updated the ci/cd versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
ByronMayne committed Oct 28, 2023
1 parent fa6e353 commit 74471ef
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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>(.*)<\/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

0 comments on commit 74471ef

Please sign in to comment.