We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae49e62 commit 8cb26a7Copy full SHA for 8cb26a7
1 file changed
.github/workflows/nbgv_dotnet_pack.yml
@@ -67,9 +67,18 @@ jobs:
67
68
- name: 🔄 Restore
69
run: dotnet restore
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
80
- name: 🏗️ Build
- run: dotnet build -c ${{ inputs.build_configuration }} --no-restore
81
+ run: dotnet build -c ${{ steps.set_config.outputs.config }} --no-restore
82
83
- name: 📦 Pack all packable projects
84
shell: bash
0 commit comments