diff --git a/.github/Get-BuildInfo.ps1 b/.github/Get-BuildInfo.ps1 index 879a4e3c7..f156983f1 100644 --- a/.github/Get-BuildInfo.ps1 +++ b/.github/Get-BuildInfo.ps1 @@ -43,9 +43,10 @@ if ($configuration -ieq 'release') { $publish_nuget = 'true' } - # if ($ref -like 'refs/heads/dev/github_actions') { - # $publish_nuget = 'true' - # } + if ($ref -like 'refs/heads/dev/dotnet') { + $publish_nuget = 'true' + $app_version_suffix = "preview${env:GITHUB_RUN_NUMBER}" + } } $app_version_full = $app_version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f209f794b..7ae94046b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,8 @@ name: release on: push: + branches: + - 'dev/dotnet' tags: - 'v*.*.*'