Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kubagdynia committed Sep 5, 2024
1 parent a577075 commit 1cfc273
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,27 @@ jobs:
if-no-files-found: error
retention-days: 7
path: ${{env.NuGetDirectory}}/*.nupkg

publish:
runs-on: ubuntu-latest
needs: [ build ]
needs: build

steps:
- name: Download the NuGet package
uses: actions/download-artifact@v3
with:
name: nuget
path: ${{ env.NuGetDirectory }}

# List the NuGet package

- name: List the NuGet package
run: ls ${{env.NuGetDirectory}}

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Publish the NuGet package

- name: Publish NuGet package
run: |
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
Expand Down

0 comments on commit 1cfc273

Please sign in to comment.