Skip to content

Commit

Permalink
Fix incorrect workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Dec 14, 2023
1 parent 885180a commit 76c1155
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/actions/nuget-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ inputs:
required: true
project-paths:
required: true

env:
NuGetDirectory: ${{ github.workspace}}/nuget
nuget-directory:
required: true

runs:
using: composite
Expand All @@ -25,13 +24,15 @@ runs:
dotnet-version: 6.0.x

- name: Create NuGet packages
shell: pwsh
run: |
foreach($file in (ConvertFrom-Json -InputObject "${{ inputs.project-paths }}")) {
dotnet pack $file --configuration Release --output ${{ env.NuGetDirectory }}
dotnet pack $file --configuration Release --output ${{ inputs.nuget-directory }}
}
- name: Publish NuGet packages
shell: pwsh
run: |
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
foreach($file in (Get-ChildItem "${{ inputs.nuget-directory }}" -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ inputs.nuget-token }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}
1 change: 1 addition & 0 deletions .github/workflows/nuget-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
project-paths: ${{ inputs.project-paths }}
version: ${{ steps.get_version.outputs.version }}
nuget-token: ${{ secrets.nuget-token }}
nuget-directory: ${{ github.workspace}}/nuget

# Create a release for the tag
- uses: ./.github/actions/release-create
Expand Down

0 comments on commit 76c1155

Please sign in to comment.