Skip to content

Commit

Permalink
GithubCI: rename packages to Mali.*
Browse files Browse the repository at this point in the history
Rename Microsoft.Maui.* packages to Mali.* before packing and
uploading.
  • Loading branch information
webwarrior-ws committed Nov 20, 2024
1 parent e774524 commit c5c83c8
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/build-gtk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/<PackageId>Microsoft.Maui/<PackageId>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 }}
Expand Down

0 comments on commit c5c83c8

Please sign in to comment.