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'