File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -130,12 +130,23 @@ jobs:
130130
131131 - name : Build and publish
132132 run : |
133- dotnet publish ${{ env.PROJECT_NAME }} \
134- --configuration Release \
135- --runtime ${{ matrix.runtime }} \
136- --self-contained false \
137- --output ./publish/${{ matrix.runtime }} \
138- --verbosity minimal
133+ if [[ "${{ matrix.runtime }}" == linux-* ]]; then
134+ # Framework-dependent deployment for Docker (Linux)
135+ dotnet publish ${{ env.PROJECT_NAME }} \
136+ --configuration Release \
137+ --runtime ${{ matrix.runtime }} \
138+ --self-contained false \
139+ --output ./publish/${{ matrix.runtime }} \
140+ --verbosity minimal
141+ else
142+ # Self-contained deployment without single-file for other platforms
143+ dotnet publish ${{ env.PROJECT_NAME }} \
144+ --configuration Release \
145+ --runtime ${{ matrix.runtime }} \
146+ --self-contained true \
147+ --output ./publish/${{ matrix.runtime }} \
148+ --verbosity minimal
149+ fi
139150
140151 - name : Code sign macOS binaries
141152 if : startsWith(matrix.runtime, 'osx-')
You can’t perform that action at this time.
0 commit comments