Skip to content

Commit 8202e96

Browse files
committed
Remove the publish_nuget property from release build
1 parent 0a33e70 commit 8202e96

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

.github/Get-BuildInfo.ps1

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function Write-GitHubVariable {
2626
$app_version = $project.Project.PropertyGroup[0].NetOfficeRelease
2727

2828
$sign_binaries = 'false'
29-
$publish_nuget = 'false'
3029
$app_version_suffix = "preview${env:GITHUB_RUN_NUMBER}"
3130

3231
if ($configuration -ieq 'release') {
@@ -35,17 +34,8 @@ if ($configuration -ieq 'release') {
3534
}
3635

3736
if ($ref -like 'refs/tags/v*') {
38-
$publish_nuget = 'true'
3937
$app_version_suffix = ''
4038
}
41-
42-
if ($ref -like 'refs/heads/releases/*') {
43-
$publish_nuget = 'true'
44-
}
45-
46-
# if ($ref -like 'refs/heads/dev/github_actions') {
47-
# $publish_nuget = 'true'
48-
# }
4939
}
5040

5141
$app_version_full = $app_version
@@ -57,4 +47,3 @@ Write-GitHubVariable "app_version" $app_version
5747
Write-GitHubVariable "app_version_suffix" $app_version_suffix
5848
Write-GitHubVariable "app_version_full" $app_version_full
5949
Write-GitHubVariable "sign_binaries" $sign_binaries
60-
Write-GitHubVariable "publish_nuget" $publish_nuget

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,13 @@ jobs:
8888

8989
- name: Pack NetOffice
9090
id: packages
91-
if: steps.build.outputs.publish_nuget == 'true'
9291
run: |
9392
dotnet pack --no-build --no-restore Source\NetOffice.sln -c ${{ env.Configuration }} -o dist
9493
env:
9594
VersionSuffix: ${{ steps.build.outputs.app_version_suffix }}
9695

9796
- name: Sign NetOffice packages
98-
if: success() && steps.build.outputs.publish_nuget == 'true' && steps.build.outputs.sign_binaries == 'true'
97+
if: success() && steps.build.outputs.sign_binaries == 'true'
9998
run: |
10099
$trustedsigning = Get-Content .\Source\trustedsigning.json | ConvertFrom-Json
101100

0 commit comments

Comments
 (0)