From 0aa811d8ba84f01bdbe72a3e76bc43595cd3d2d6 Mon Sep 17 00:00:00 2001 From: Mohammad Sadegh Shad Date: Mon, 23 Sep 2024 15:28:02 +0330 Subject: [PATCH] Update actions --- .github/workflows/publish.yml | 93 +++++++++++++++++++++-------------- Zebble/Zebble.csproj | 4 +- 2 files changed, 58 insertions(+), 39 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 885ec22..bc7c37f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,48 +7,67 @@ jobs: strategy: matrix: configuration: [ Release ] - runs-on: windows-2019 + runs-on: windows-2022 steps: - - uses: actions/checkout@v2 - - - name: Publish a new Zebble package - uses: brandedoutcast/publish-nuget@v2 + - uses: actions/checkout@v4 + + - uses: actions/setup-dotnet@v4 with: - PROJECT_FILE_PATH: Zebble/Zebble.csproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} - + 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: SDKList + run: dotnet --list-sdks + + - name: RuntimeList + run: dotnet --list-runtimes + + - name: WorkloadList + run: dotnet workload list + + - name: PWD-Root + run: ECHO PWD + + - name: ls-Root + run: ls + + - name: PWD-Zebble + run: ECHO PWD + working-directory: Zebble + + - name: ls-Zebble + run: ls + working-directory: Zebble + + - name: Publish a new Zebble package + run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish + working-directory: Zebble + - name: Publish a new Zebble.Build package - uses: brandedoutcast/publish-nuget@v2 - with: - PROJECT_FILE_PATH: Zebble.Build/Zebble.Build.csproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} - + run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish + working-directory: Zebble.Build + - name: Publish a new Zebble.CompileZbl package - uses: brandedoutcast/publish-nuget@v2 - with: - PROJECT_FILE_PATH: Zebble.CompileZbl/Zebble.CompileZbl.csproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} - + run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish + working-directory: Zebble.CompileZbl + - name: Publish a new Zebble.Css package - uses: brandedoutcast/publish-nuget@v2 - with: - PROJECT_FILE_PATH: Zebble.Css/Zebble.Css.csproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} - + run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish + working-directory: Zebble.Css + - name: Publish a new Zebble.FormatZbl package - uses: brandedoutcast/publish-nuget@v2 - with: - PROJECT_FILE_PATH: Zebble.FormatZbl/Zebble.FormatZbl.csproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} - + run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish + working-directory: Zebble.FormatZbl + - name: Publish a new Zebble.Image package - uses: brandedoutcast/publish-nuget@v2 - with: - PROJECT_FILE_PATH: Zebble.Image/Zebble.Image.csproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} - + run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish + working-directory: Zebble.Image + - name: Publish a new Zebble.Schema package - uses: brandedoutcast/publish-nuget@v2 - with: - PROJECT_FILE_PATH: Zebble.Schema/Zebble.Schema.csproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} + run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish + working-directory: Zebble.Schema diff --git a/Zebble/Zebble.csproj b/Zebble/Zebble.csproj index f627fac..08ee3d1 100644 --- a/Zebble/Zebble.csproj +++ b/Zebble/Zebble.csproj @@ -1,12 +1,12 @@  net8.0;net8.0-android;net8.0-ios - $(TargetFrameworks);net8.0-windows10.0.19041.0 + $(TargetFrameworks);net8.0-windows10.0.19041 Zebble Zebble Zebble $(AssemblyName) ($(TargetFramework)) - 5.1.0.0 + 5.1.2.0 true en 0618;0162