Skip to content

Commit 2fd15a8

Browse files
author
Gurpreet Singh
committed
add conditions to when a package should be created
1 parent 3c6be20 commit 2fd15a8

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,22 @@ jobs:
163163
run: |
164164
echo "SamplesUpdated: ${{ steps.changes.outputs.SamplesUpdated }}"
165165
echo "BddfyUpdated: ${{ steps.changes.outputs.BddfyUpdated }}"
166-
167-
- name: Create NuGet package
166+
167+
- name: Create Samples package
168+
working-directory: src
169+
if: steps.changes.outputs.SamplesUpdated == 'true'
170+
run: >-
171+
dotnet pack ./Samples/TestStack.BDDfy.Samples/*.csproj
172+
--configuration Release
173+
--no-build
174+
/p:PackageVersion=${{ steps.formatversion.outputs.packageVersion }}
175+
--output ../packages
176+
177+
- name: Create Bddfy package
168178
working-directory: src
179+
if: steps.changes.outputs.BddfyUpdated == 'true'
169180
run: >-
170-
dotnet pack
181+
dotnet pack ./TestStack.BDDfy/*.csproj
171182
--configuration Release
172183
--no-build
173184
/p:PackageVersion=${{ steps.formatversion.outputs.packageVersion }}

0 commit comments

Comments
 (0)