Skip to content

Commit fc1b453

Browse files
Update nbgv_dotnet_pack.yml
1 parent 585fcc9 commit fc1b453

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/nbgv_dotnet_pack.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ jobs:
7373

7474
- name: 📦 Pack
7575
run: |
76-
EXTRA_FLAGS=""
77-
if [ "${{ inputs.force_dev_prerelease }}" = "true" ]; then
78-
EXTRA_FLAGS="--include-symbols --include-source"
76+
if [[ "${{ inputs.semver2 }}" == *-* ]]; then
77+
dotnet pack … --include-symbols --include-source …
78+
else
79+
dotnet pack …
7980
fi
80-
81+
8182
PUBLIC_RELEASE_FLAG=""
8283
if [ "${{ inputs.build_configuration }}" = "Release" ]; then
8384
PUBLIC_RELEASE_FLAG="-p:PublicRelease=true"
@@ -151,4 +152,4 @@ jobs:
151152
body_path: release-notes.md
152153
prerelease: ${{ contains(inputs.semver2, '-') }}
153154
env:
154-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || github.token }}
155+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || github.token }}

0 commit comments

Comments
 (0)