Skip to content

Commit

Permalink
ci: next try
Browse files Browse the repository at this point in the history
  • Loading branch information
Meerownymous committed Dec 2, 2024
1 parent 4983e58 commit f04fd96
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
name: build-artifacts
path: |
./artifacts/
src/**/obj/ # Ensure metadata like project.assets.json is included.
src/**/obj/
- name: Run Tests
run: |
Expand Down Expand Up @@ -92,12 +92,13 @@ jobs:

- name: Pack NuGet Package from Artifacts
run: |
find ./artifacts -type f -name "*.dll" | while read dll; do
if [[ $dll != *"Tests"* ]]; then
project_name=$(basename $(dirname $dll))
project_dir=$(dirname $(dirname $dll))
echo "Packing $project_name from $project_dir"
dotnet pack $project_dir/$project_name.csproj --no-build --configuration Release --output ./artifacts
for project in $PROJECTS_TO_BUILD; do
if [[ $project != *"TEST"* ]]; then
project_name=$(basename $project .csproj)
echo "Packing $project_name from $project"
dotnet pack $project --no-build --configuration Release --output ./artifacts
else
echo "Skipping test project $project"
fi
done
shell: bash
Expand Down

0 comments on commit f04fd96

Please sign in to comment.