Skip to content

Commit 8cb26a7

Browse files
Update nbgv_dotnet_pack.yml
1 parent ae49e62 commit 8cb26a7

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/nbgv_dotnet_pack.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,18 @@ jobs:
6767

6868
- name: 🔄 Restore
6969
run: dotnet restore
70-
70+
71+
- name: Set Build Configuration
72+
id: set_config
73+
run: |]];
74+
if [[ "${GITHUB_REF##*/}" == "main" || "${GITHUB_REF##*/}" == "master" then
75+
echo "config=Release" >> $GITHUB_OUTPUT
76+
else
77+
echo "config=Debug" >> $GITHUB_OUTPUT
78+
fi
79+
7180
- name: 🏗️ Build
72-
run: dotnet build -c ${{ inputs.build_configuration }} --no-restore
81+
run: dotnet build -c ${{ steps.set_config.outputs.config }} --no-restore
7382

7483
- name: 📦 Pack all packable projects
7584
shell: bash

0 commit comments

Comments
 (0)