File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ concurrency:
17
17
cancel-in-progress : false
18
18
19
19
env :
20
- is-release : ${{ startsWith(github.ref_name, 'release') || startsWith(github.ref_name, 'preview') }}
21
20
dotnet-sdk-version : ' 9.x'
22
21
build-configuration : ' Release'
23
22
build-platform : ' Any CPU'
42
41
run : |
43
42
echo "github-run-id:${{ github.run_id }}"
44
43
echo "github-run-number:${{ github.run_number }}"
45
- echo "is-release:${{ github.run_id }}"
46
- echo "is-preview:${{ github.run_number }}"
44
+ echo "is-release:${{ startsWith( github.ref_name, 'release') }}"
45
+ echo "is-preview:${{ startsWith( github.ref_name, 'preview') }}"
47
46
48
47
versioning :
49
48
name : Versioning with GitVersion
@@ -164,7 +163,7 @@ jobs:
164
163
environment : ' Development'
165
164
166
165
publish-production-package :
167
- if : ${{ needs.global-variables.outputs.is-release == 'true' }}
166
+ if : ${{ needs.global-variables.outputs.is-release == 'true' || needs.global-variables.outputs.is-preview == 'true' }}
168
167
name : ' Publish'
169
168
uses : ./.github/workflows/release-nuget-package.yml
170
169
needs : [global-variables, pack]
You can’t perform that action at this time.
0 commit comments