Skip to content

Commit ef5fca3

Browse files
Update nbgv_dotnet_pack.yml
1 parent 1168a80 commit ef5fca3

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/nbgv_dotnet_pack.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pack & Publish Package
1+
name: NDGV Pack & Publish Package
22

33
on:
44
workflow_call:
@@ -34,7 +34,7 @@ jobs:
3434
ref: ${{ inputs.checkout_ref }}
3535
fetch-depth: 0
3636

37-
- name: ⚙️ Setup .NET
37+
- name: ⚙️ Setup .NET
3838
uses: actions/setup-dotnet@v4
3939
with:
4040
dotnet-version: "9.0.x"
@@ -53,9 +53,13 @@ jobs:
5353
if [ "${{ inputs.force_dev_prerelease }}" = "true" ]; then
5454
EXTRA_FLAGS="--include-symbols --include-source"
5555
fi
56+
57+
# Pass PublicRelease=true for a public release (omit commit ID)
5658
dotnet pack --configuration ${{ inputs.build_configuration }} \
5759
--no-build --no-restore \
58-
--output ./artifacts $EXTRA_FLAGS
60+
--output ./artifacts \
61+
-p:PublicRelease=true \
62+
$EXTRA_FLAGS
5963
6064
- name: 🚀 Publish to NuGet
6165
if: ${{ inputs.push_after_pack }}

0 commit comments

Comments
 (0)