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

Loading…
Cancel
Save