From 404159895f2a5db4c0ecd5adb8bb38ff929f8db3 Mon Sep 17 00:00:00 2001 From: Reza Talebi Date: Mon, 23 Sep 2024 19:49:33 +0330 Subject: [PATCH] Migrate to WinUI 3 (#9) * WinUI3 * Update zebble * Fix csproj * Github action --------- Co-authored-by: Reza Talebi --- .github/workflows/publish.yml | 25 +++++++++++++++++++++++++ Carousel.csproj | 17 +++++++++-------- 2 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..9a869bc --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: Publishes a new package of Zebble.Carousel to the nuget.org +on: + push: + branches: [ master ] +jobs: + build: + strategy: + matrix: + configuration: [ Release ] + runs-on: windows-2022 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + + - name: Install MAUI + run: dotnet workload install ios android maui --source https://aka.ms/dotnet8/nuget/index.json --source https://api.nuget.org/v3/index.json + + - name: Install Zebble's CLI tools + run: dotnet tool install --global zebble-build + + - name: Publish a new Zebble.Carousel package + run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish \ No newline at end of file diff --git a/Carousel.csproj b/Carousel.csproj index cc14032..4b83fec 100644 --- a/Carousel.csproj +++ b/Carousel.csproj @@ -1,12 +1,12 @@  net8.0-android;net8.0-ios - $(TargetFrameworks);uap10.0.18362 + $(TargetFrameworks);net8.0-windows10.0.19041 Zebble.Carousel Zebble Zebble.Carousel $(AssemblyName) ($(TargetFramework)) - 5.0.4.0 + 5.1.0.0 true en $(DefineConstants) @@ -29,8 +29,9 @@ true true - - $(DefineConstants);UWP + + win-x86;win-x64;win-arm64 + $(DefineConstants);WINUI $(DefineConstants);ANDROID @@ -42,8 +43,8 @@ - - + + @@ -58,9 +59,9 @@ - + - + \ No newline at end of file