From 4c29bea63bf796a6e1d42ccd0c8f16bc51fb6dd9 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Thu, 20 Jun 2024 13:32:37 +0200 Subject: [PATCH] Publish NetOffice packages with support for .NET Core --- .github/Get-BuildInfo.ps1 | 7 ++++--- .github/workflows/release.yml | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) 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*.*.*'