From 6d8e46bb8792936850d023249d06f3c97a947e43 Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 13 Nov 2026 12:53:46 +0100 Subject: [PATCH 1/2] Update GitHub Actions to Node.js 24 --- .github/workflows/BuildAndTest.yml | 6 +++--- .github/workflows/PublishRelease.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/BuildAndTest.yml b/.github/workflows/BuildAndTest.yml index a060691..706835a 100644 --- a/.github/workflows/BuildAndTest.yml +++ b/.github/workflows/BuildAndTest.yml @@ -61,10 +61,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup .NET Core - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: dotnet-version: 8.0.x @@ -119,7 +119,7 @@ jobs: report_individual_runs: true - name: Publish Unit Test Results - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 if: always() with: name: NUnit Test Results ${{ matrix.os }} diff --git a/.github/workflows/PublishRelease.yml b/.github/workflows/PublishRelease.yml index 9948344..853de05 100644 --- a/.github/workflows/PublishRelease.yml +++ b/.github/workflows/PublishRelease.yml @@ -38,10 +38,10 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Setup .NET Core - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 with: dotnet-version: 8.0.x @@ -58,14 +58,14 @@ jobs: run: Compress-Archive -DestinationPath bin-wincontrols.zip ${{env.BUILD_OUTPUT_BASEDIR2}}/${{env.BUILD_OUTPUT_SUBDIR}} - name: Publish zipped binaries CompuMaster.TaskManagement - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4 with: files: "bin.zip" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish zipped binaries CompuMaster.TaskManagement.UI.WinForms - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4 with: files: "bin-wincontrols.zip" env: @@ -81,7 +81,7 @@ jobs: run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate - name: Publish Package Artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: Nupkg Artifacts path: ./**/*.nupkg \ No newline at end of file From 625fde44547aab04330ac30a03ad8a285f26fea7 Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 13 Nov 2026 12:57:50 +0100 Subject: [PATCH 2/2] Prepare the next NuGet release with Trusted Publishing --- .github/workflows/PublishRelease.yml | 13 ++++++++++++- .../CompuMaster.TaskManagement.UI.WinForms.vbproj | 2 +- .../CompuMaster.TaskManagement.vbproj | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/PublishRelease.yml b/.github/workflows/PublishRelease.yml index 853de05..49b5c0c 100644 --- a/.github/workflows/PublishRelease.yml +++ b/.github/workflows/PublishRelease.yml @@ -32,6 +32,9 @@ env: jobs: publish: + permissions: + contents: write + id-token: write runs-on: windows-latest #if: false # always skip job @@ -77,8 +80,16 @@ jobs: - name: Pack CompuMaster.TaskManagement.UI.WinForms run: dotnet pack --no-build --configuration=${{env.PACK_CONFIGURATION}} ${{env.BUILD_PROJECT2}} --output . + - name: Authenticate to NuGet.org via Trusted Publishing + uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1.2.0 + id: nuget-login + with: + user: ${{ vars.NUGET_USER }} + - name: PushNuget CompuMaster.TaskManagement + CompuMaster.TaskManagement.UI.WinForms - run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate + env: + NUGET_API_KEY: ${{ steps.nuget-login.outputs.NUGET_API_KEY }} + run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key "$env:NUGET_API_KEY" --skip-duplicate - name: Publish Package Artifacts uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 diff --git a/CompuMaster.TaskManagement.UI.WinForms/CompuMaster.TaskManagement.UI.WinForms.vbproj b/CompuMaster.TaskManagement.UI.WinForms/CompuMaster.TaskManagement.UI.WinForms.vbproj index 799199f..dbcf258 100644 --- a/CompuMaster.TaskManagement.UI.WinForms/CompuMaster.TaskManagement.UI.WinForms.vbproj +++ b/CompuMaster.TaskManagement.UI.WinForms/CompuMaster.TaskManagement.UI.WinForms.vbproj @@ -1,7 +1,7 @@  - 2026.01.26.0 + 2026.11.12.0 2023-2026 CompuMaster GmbH CompuMaster.TaskManagement.UI.WinForms - MIT license edition CompuMaster GmbH diff --git a/CompuMaster.TaskManagement/CompuMaster.TaskManagement.vbproj b/CompuMaster.TaskManagement/CompuMaster.TaskManagement.vbproj index 0717c1c..6a2876b 100644 --- a/CompuMaster.TaskManagement/CompuMaster.TaskManagement.vbproj +++ b/CompuMaster.TaskManagement/CompuMaster.TaskManagement.vbproj @@ -1,6 +1,6 @@  - 2026.01.26.0 + 2026.11.12.0 2023-2026 CompuMaster GmbH CompuMaster.TaskManagement netstandard2.0;net6.0;net48