Update yaml to trigger on release (#189)

pull/190/head
Christopher Jolly 2 years ago committed by GitHub
parent 7b6ee168e2
commit b4dcf486a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,6 +5,9 @@ on:
- '**'
paths-ignore:
- '**.md'
release:
types:
- published
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
@ -354,8 +357,7 @@ jobs:
- name: NuGet Pack
shell: pwsh
run: |
$tagName = git tag --points-at HEAD
$officialBuild = $tagName -match '(?<=^v)\d+\.\d+\.\d+.*$'
$officialBuild = '${{ github.ref }}' -match '(?<=^refs/tags/)\d+\.\d+\.\d+.*$'
$officialVersion = $Matches.0
$wipBuild = '${{ github.ref }}' -match '^refs/heads/.*-wip$'
$ciBuildOnly = $wipBuild -or ('${{ github.ref }}' -match '^refs/heads/(?:master|.*-servicing)$')
@ -395,7 +397,6 @@ jobs:
if ($officialBuild)
{
$finalOfficialVersion = $officialVersion
if ($configuration -eq 'Debug')
{
$finalOfficialVersion += '-debug'

Loading…
Cancel
Save