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..49b5c0c 100644 --- a/.github/workflows/PublishRelease.yml +++ b/.github/workflows/PublishRelease.yml @@ -32,16 +32,19 @@ env: jobs: publish: + permissions: + contents: write + id-token: write runs-on: windows-latest #if: false # always skip job 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 +61,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: @@ -77,11 +80,19 @@ 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@v4 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: Nupkg Artifacts path: ./**/*.nupkg \ No newline at end of file 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