From b4dcf486a63d67412be77d5354fabc76861e4811 Mon Sep 17 00:00:00 2001 From: Christopher Jolly Date: Mon, 11 Dec 2023 22:08:37 +0800 Subject: [PATCH] Update yaml to trigger on release (#189) --- .github/workflows/push.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 316cd1f..a219355 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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'