From af7f253fa1bcbc572d587dc0e5e7a55a91efaa24 Mon Sep 17 00:00:00 2001 From: Andre Hofmeister <9199345+HofmeisterAn@users.noreply.github.com> Date: Wed, 1 Feb 2023 11:24:42 +0100 Subject: [PATCH] fix: Run publish stage on Windows runner (sign NuGet) --- .github/workflows/cicd.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 34415bea6..804b83a2a 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -79,7 +79,7 @@ jobs: environment: production - runs-on: ubuntu-22.04 + runs-on: windows-2022 # It looks like the Linux runner cannot sign the NuGet using a PFX file. permissions: contents: write @@ -120,14 +120,21 @@ jobs: shell: pwsh - name: Decode Code Signing Certificate + shell: bash run: echo $CODE_SIGNING_CERTIFICATE_BASE64 | base64 --decode > code-signing-certificate.pfx - name: Cache NuGet Packages uses: actions/cache@v3 with: - key: ubuntu-22.04-nuget-${{ hashFiles('Directory.Build.props') }} + key: windows-2022-nuget-${{ hashFiles('Directory.Build.props') }} path: ~/.nuget/packages + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 11 + - name: Setup .NET uses: actions/setup-dotnet@v3