Skip to content

Commit d6e3a20

Browse files
author
Petr Sramek
committed
fix
1 parent d11a88d commit d6e3a20

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ concurrency:
1717
cancel-in-progress: false
1818

1919
env:
20-
is-release: ${{ startsWith(github.ref_name, 'release') || startsWith(github.ref_name, 'preview') }}
2120
dotnet-sdk-version: '9.x'
2221
build-configuration: 'Release'
2322
build-platform: 'Any CPU'
@@ -42,8 +41,8 @@ jobs:
4241
run: |
4342
echo "github-run-id:${{ github.run_id }}"
4443
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') }}"
4746
4847
versioning:
4948
name: Versioning with GitVersion
@@ -164,7 +163,7 @@ jobs:
164163
environment: 'Development'
165164

166165
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' }}
168167
name: 'Publish'
169168
uses: ./.github/workflows/release-nuget-package.yml
170169
needs: [global-variables, pack]

0 commit comments

Comments
 (0)