diff --git a/.github/workflows/workflow-common-setup-and-build.yml b/.github/workflows/workflow-common-setup-and-build.yml index c80bcdc..e6bb5e1 100644 --- a/.github/workflows/workflow-common-setup-and-build.yml +++ b/.github/workflows/workflow-common-setup-and-build.yml @@ -87,7 +87,7 @@ jobs: uses: actions/setup-java@v4.2.2 with: distribution: 'microsoft' - java-version: '11' + java-version: '21' - name: Checkout uses: actions/checkout@v4 @@ -169,6 +169,19 @@ jobs: uses: codecov/codecov-action@v4 if: inputs.performTests == true + - name: Azure login + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + + - name: Sign the NuGet Packages + run: | + dotnet tool install --global AzureTrustedSignTool + dotnet tool install --global sign --prerelease + AzureTrustedSignTool sign --folder ./ --searchpattern *.nupkg --accountname ${{ secrets.SIGN_ACCOUNT_NAME }} --profilename ${{ secrets.SIGN_PROFILE_NAME }} + - name: Create NuGet Artifacts if: inputs.createArtifacts == true uses: actions/upload-artifact@master