From afd1c8a49e752a8dc5d3c34f0af9f4a2fe900a00 Mon Sep 17 00:00:00 2001 From: Thomas Couchoud <108809129+couchoud-t@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:18:37 +0100 Subject: [PATCH] Use .NET9 --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 48 +++++-------------- ...PowerToys.Run.Plugin.Tempo.UnitTest.csproj | 2 +- ...ommunity.PowerToys.Run.Plugin.Tempo.csproj | 2 +- .../plugin.json | 2 +- global.json | 2 +- 6 files changed, 17 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c267d8..641d12e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 9.0.x - name: Build run: dotnet build PowerToys-Run-Tempo.sln --configuration Release /p:Platform=${{matrix.platform}} /p:EnableWindowsTargeting=true - name: Prepare artifact diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a53430a..69975bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,47 +1,23 @@ name: Release on: - push: - tags: - - "*.*.*" + release: + types: [ published ] -env: - PLUGIN_NAME: Tempo +permissions: + contents: write jobs: publish: - name: Add artifact to release (${{matrix.platform}}) - runs-on: windows-latest - permissions: - contents: write - concurrency: zip_${{matrix.platform}} + uses: RakambdaOrg/rakambda-github-workflows/.github/workflows/powertoys-run-publish.yml@main strategy: matrix: - platform: + platform: - x64 - ARM64 - steps: - - name: Checkout source - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - name: Build - run: dotnet build PowerToys-Run-Tempo.sln --configuration Release /p:Platform=${{matrix.platform}} /p:EnableWindowsTargeting=true - - name: Prepare artifact - run: | - Remove-Item -Path Community.PowerToys.Run.Plugin.Tempo\bin\* -Recurse -Include *.xml, *.pdb, PowerToys.*, Wox.* - Rename-Item -Path Community.PowerToys.Run.Plugin.Tempo\bin\${{matrix.platform}}\Release -NewName $env:PLUGIN_NAME - if (Test-Path -Path "${{env.PLUGIN_NAME}}-${{matrix.platform}}.zip") - { - Remove-Item -Path "${{env.PLUGIN_NAME}}-${{matrix.platform}}.zip" - } - Compress-Archive -Path Community.PowerToys.Run.Plugin.Tempo\bin\${{matrix.platform}}\$env:PLUGIN_NAME -DestinationPath "${{env.PLUGIN_NAME}}-${{matrix.platform}}.zip" - - name: Release - uses: softprops/action-gh-release@v2.2.0 - with: - fail_on_unmatched_files: false - generate_release_notes: true - files: | - ${{env.PLUGIN_NAME}}-${{matrix.platform}}.zip + with: + dotnet-version: "9.0.x" + plugin-name: "Tempo" + platform: ${{ matrix.platform }} + solution-path: "PowerToys-Run-Tempo.sln" + project-path: "Community.PowerToys.Run.Plugin.Tempo" diff --git a/Community.PowerToys.Run.Plugin.Tempo.UnitTest/Community.PowerToys.Run.Plugin.Tempo.UnitTest.csproj b/Community.PowerToys.Run.Plugin.Tempo.UnitTest/Community.PowerToys.Run.Plugin.Tempo.UnitTest.csproj index d4f2825..25eacce 100644 --- a/Community.PowerToys.Run.Plugin.Tempo.UnitTest/Community.PowerToys.Run.Plugin.Tempo.UnitTest.csproj +++ b/Community.PowerToys.Run.Plugin.Tempo.UnitTest/Community.PowerToys.Run.Plugin.Tempo.UnitTest.csproj @@ -1,7 +1,7 @@  - net8.0-windows + net9.0-windows x64;ARM64 $(Platform) PowerToys-Run-Tempo-UnitTest diff --git a/Community.PowerToys.Run.Plugin.Tempo/Community.PowerToys.Run.Plugin.Tempo.csproj b/Community.PowerToys.Run.Plugin.Tempo/Community.PowerToys.Run.Plugin.Tempo.csproj index f9e2c8e..c2283f3 100644 --- a/Community.PowerToys.Run.Plugin.Tempo/Community.PowerToys.Run.Plugin.Tempo.csproj +++ b/Community.PowerToys.Run.Plugin.Tempo/Community.PowerToys.Run.Plugin.Tempo.csproj @@ -1,7 +1,7 @@  - net8.0-windows + net9.0-windows x64;ARM64 $(Platform) true diff --git a/Community.PowerToys.Run.Plugin.Tempo/plugin.json b/Community.PowerToys.Run.Plugin.Tempo/plugin.json index 411ec14..1c58afa 100644 --- a/Community.PowerToys.Run.Plugin.Tempo/plugin.json +++ b/Community.PowerToys.Run.Plugin.Tempo/plugin.json @@ -4,7 +4,7 @@ "IsGlobal": false, "Name": "Tempo", "Author": "Rakambda,muller-j", - "Version": "0.0.2", + "Version": "0.0.0", "Language": "csharp", "Website": "https://github.com/RakambdaOrg/PowerToys-Run-Tempo", "ExecuteFileName": "Community.PowerToys.Run.Plugin.Tempo.dll", diff --git a/global.json b/global.json index dad2db5..f4fd385 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "8.0.0", + "version": "9.0.0", "rollForward": "latestMajor", "allowPrerelease": true }