Skip to content

Commit

Permalink
fix: dotnet-nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvenBless authored Sep 13, 2024
1 parent ab0e089 commit 06e17b8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/dotnet-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,8 @@ jobs:
with:
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore $env:Solution_Name

- name: Build
run: dotnet build $env:Solution_Name --configuration $env:Configuration --no-restore

- name: Test
run: dotnet test $env:Solution_Name --configuration $env:Configuration --no-build --verbosity normal

- name: Pack
run: dotnet pack $env:Wap_Project_Path --configuration $env:Configuration --no-build --output $env:Wap_Project_Directory
run: dotnet build $env:Solution_Name --configuration $env:Configuration

- name: Publish NuGet package
run: dotnet nuget push $env:Wap_Project_Directory/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 comments on commit 06e17b8

Please sign in to comment.