Skip to content

Commit

Permalink
fix: Run publish stage on Windows runner (sign NuGet)
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Feb 1, 2023
1 parent 80017c3 commit af7f253
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit af7f253

Please sign in to comment.