-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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] | ||
|
@@ -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 | ||
|
||
|
@@ -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. | ||
|