Skip to content

Commit

Permalink
Update nuget_push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danielathome19 authored Jan 1, 2024
1 parent f85fc83 commit 497f214
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/nuget_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v2
with:
dotnet-version: '7.0.x'
dotnet-version: '3.1.x'

- name: Copy README to project directory
run: cp README.md "Chunk List/"
run: cp README.md Chunk\ List/

- name: Restore dependencies
run: dotnet restore
Expand All @@ -31,7 +31,8 @@ jobs:
run: dotnet test --no-restore --verbosity normal

- name: Pack
run: dotnet pack --configuration Release --no-build -o out
run: dotnet pack --configuration Release --no-build -o out Chunk\ List/Chunk\ List.csproj
# run: dotnet pack --configuration Release --no-build -o out

- name: Push to NuGet
run: dotnet nuget push out/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 497f214

Please sign in to comment.