File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff 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
3231if ($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
5747Write-GitHubVariable " app_version_suffix" $app_version_suffix
5848Write-GitHubVariable " app_version_full" $app_version_full
5949Write-GitHubVariable " sign_binaries" $sign_binaries
60- Write-GitHubVariable " publish_nuget" $publish_nuget
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments