Skip to content

Commit

Permalink
Update nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlamin authored Nov 12, 2024
1 parent 1946dfe commit 73d79e4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v4

with:
dotnet-version: 9.x.x
# Create the NuGet package in the folder from the environment variable NuGetDirectory
- run: dotnet pack --configuration Release --output ${{ env.NuGetDirectory }} /p:ContinuousIntegrationBuild=true

Expand All @@ -47,6 +48,8 @@ jobs:
# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x.x

# Download the NuGet package created in the previous job
- uses: actions/[email protected]
Expand All @@ -70,6 +73,8 @@ jobs:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x.x
- name: Run tests
run: dotnet test --configuration Release

Expand All @@ -87,9 +92,10 @@ jobs:
name: nuget
path: ${{ env.NuGetDirectory }}

# Install the .NET SDK indicated in the global.json file
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x.x

# Publish all NuGet packages to NuGet.org
# Use --skip-duplicate to prevent errors if a package with the same version already exists.
Expand Down

0 comments on commit 73d79e4

Please sign in to comment.