Skip to content

Commit

Permalink
Update setup-nuget and fix not working on ubuntu-latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
timcassell committed Jan 27, 2025
1 parent 3c212a6 commit 4f676bc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:

jobs:
build:
runs-on: ubuntu-latest
# Setup-nuget fails on latest. https://github.com/NuGet/setup-nuget/issues/168
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- name: Checkout
Expand Down Expand Up @@ -73,16 +74,16 @@ jobs:
cat ProtoPromise.UnityHelpers/2018.3/nuget/ProtoPromise.UnityHelpers.2018.3.nuspec
cat ProtoPromise.UnityHelpers/2023.1/nuget/ProtoPromise.UnityHelpers.2023.1.nuspec
- name: Setup nuget
uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.X

- name: Setup nuget
uses: nuget/setup-nuget@v2
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}

- name: Build Debug
run: dotnet build -c Debug /p:IsNugetBuild=true

Expand Down

0 comments on commit 4f676bc

Please sign in to comment.