diff --git a/.github/Get-BuildInfo.ps1 b/.github/Get-BuildInfo.ps1 index 879a4e3c7..0bc8e3070 100644 --- a/.github/Get-BuildInfo.ps1 +++ b/.github/Get-BuildInfo.ps1 @@ -26,7 +26,6 @@ function Write-GitHubVariable { $app_version = $project.Project.PropertyGroup[0].NetOfficeRelease $sign_binaries = 'false' -$publish_nuget = 'false' $app_version_suffix = "preview${env:GITHUB_RUN_NUMBER}" if ($configuration -ieq 'release') { @@ -35,17 +34,8 @@ if ($configuration -ieq 'release') { } if ($ref -like 'refs/tags/v*') { - $publish_nuget = 'true' $app_version_suffix = '' } - - if ($ref -like 'refs/heads/releases/*') { - $publish_nuget = 'true' - } - - # if ($ref -like 'refs/heads/dev/github_actions') { - # $publish_nuget = 'true' - # } } $app_version_full = $app_version @@ -57,4 +47,3 @@ Write-GitHubVariable "app_version" $app_version Write-GitHubVariable "app_version_suffix" $app_version_suffix Write-GitHubVariable "app_version_full" $app_version_full Write-GitHubVariable "sign_binaries" $sign_binaries -Write-GitHubVariable "publish_nuget" $publish_nuget diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce59db87c..407942ecb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,14 +88,13 @@ jobs: - name: Pack NetOffice id: packages - if: steps.build.outputs.publish_nuget == 'true' run: | dotnet pack --no-build --no-restore Source\NetOffice.sln -c ${{ env.Configuration }} -o dist env: VersionSuffix: ${{ steps.build.outputs.app_version_suffix }} - name: Sign NetOffice packages - if: success() && steps.build.outputs.publish_nuget == 'true' && steps.build.outputs.sign_binaries == 'true' + if: success() && steps.build.outputs.sign_binaries == 'true' run: | $trustedsigning = Get-Content .\Source\trustedsigning.json | ConvertFrom-Json