diff --git a/.github/workflows/build-gtk.yml b/.github/workflows/build-gtk.yml index 4f9541ef3a4e..63dfe3ed3836 100644 --- a/.github/workflows/build-gtk.yml +++ b/.github/workflows/build-gtk.yml @@ -9,6 +9,14 @@ jobs: GtkSharpVersion: 3.24.24.117-develop GtkSharpManifestVersion: 8.0.200 DotnetVersion: 8.0.200 + PROJECTS_TO_PACK: | + src/BlazorWebView/src/Maui/Microsoft.AspNetCore.Components.WebView.Maui.csproj + src/Essentials/src/Essentials.csproj + src/Controls/src/Core/Controls.Core.csproj + src/Controls/src/Xaml/Controls.Xaml.csproj + src/Core/src/Core.csproj + src/Compatibility/Core/src/Compatibility.csproj + src/Controls/Foldable/src/Controls.Foldable.csproj steps: - name: Checkout MAUI repo uses: actions/checkout@v2 @@ -33,22 +41,20 @@ jobs: run: | mv Directory.Build.Override.props.in Directory.Build.Override.props dotnet build Microsoft.Maui.BuildTasks.slnf - dotnet build -c Release src/BlazorWebView/src/Maui/Microsoft.AspNetCore.Components.WebView.Maui.csproj - dotnet build -c Release src/Essentials/src/Essentials.csproj - dotnet build -c Release src/Controls/src/Core/Controls.Core.csproj - dotnet build -c Release src/Controls/src/Xaml/Controls.Xaml.csproj - dotnet build -c Release src/Core/src/Core.csproj - dotnet build -c Release src/Compatibility/Core/src/Compatibility.csproj - dotnet build -c Release src/Controls/Foldable/src/Controls.Foldable.csproj + echo "$PROJECTS_TO_PACK" | while read -r project; do + [ -z "$project" ] && continue # Skip if empty + dotnet build -c Release "$project" + done - name: Pack MAUI run: | - dotnet pack src/BlazorWebView/src/Maui/Microsoft.AspNetCore.Components.WebView.Maui.csproj --no-build --no-restore - dotnet pack src/Essentials/src/Essentials.csproj --no-build --no-restore - dotnet pack src/Controls/src/Core/Controls.Core.csproj --no-build --no-restore - dotnet pack src/Controls/src/Xaml/Controls.Xaml.csproj --no-build --no-restore - dotnet pack src/Core/src/Core.csproj --no-build --no-restore - dotnet pack src/Compatibility/Core/src/Compatibility.csproj --no-build --no-restore - dotnet pack src/Controls/Foldable/src/Controls.Foldable.csproj --no-build --no-restore + echo "$PROJECTS_TO_PACK" | while read -r project; do + [ -z "$project" ] && continue # Skip if empty + sed -i 's/Microsoft.Maui/Mali/g' "$project" + cd src/Core/src/nuget/buildTransitive + rename 's/Microsoft\.Maui\./Mali./' Microsoft.Maui.* + cd ../../../../ + dotnet pack "$project" --no-build --no-restore + done - name: Upload binaries to nuget (if tag or main branch, and nugetKey is present) env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}