diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index a8fa99a..889d67b 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -152,7 +152,7 @@ jobs: # Upload to NuGet - name: Upload to NuGet (DryRun=${{ inputs.dry-run }}) if: ${{ inputs.nuget-push }} - run: dotnet run --project "./src/CysharpActions/CysharpActions.csproj" --no-launch-profile -- nuget-push --nuget-path-string "${{ inputs.nuget-path }}" --apiKey "${{ steps.op-load-secret.outputs.NUGET_KEY }}" ${{ inputs.dry-run && '--dry-run' || '' }} + run: dotnet run --project "./src/CysharpActions/CysharpActions.csproj" --no-launch-profile -- nuget-push --nuget-path-string "${{ inputs.nuget-path }}" --api-key "${{ steps.op-load-secret.outputs.NUGET_KEY }}" ${{ inputs.dry-run && '--dry-run' || '' }} # Clean up - name: Clean up. Wait 60s and delete release if dry-run or failure. (dry-run=${{ inputs.dry-run }}}) diff --git a/src/CysharpActions/Commands/CreateReleaseCommand.cs b/src/CysharpActions/Commands/CreateReleaseCommand.cs index 39ed9bd..40927c8 100644 --- a/src/CysharpActions/Commands/CreateReleaseCommand.cs +++ b/src/CysharpActions/Commands/CreateReleaseCommand.cs @@ -41,7 +41,7 @@ public async Task UploadAssetFilesAsync(string[] assetPaths) // Is Wildcard? foreach (var file in GlobFiles.EnumerateFiles(path)) { - await UploadCoreAsync(tag, path); + await UploadCoreAsync(tag, file); } } else diff --git a/src/CysharpActions/Commands/NuGetCommand.cs b/src/CysharpActions/Commands/NuGetCommand.cs index 488d2ce..1a1d8a4 100644 --- a/src/CysharpActions/Commands/NuGetCommand.cs +++ b/src/CysharpActions/Commands/NuGetCommand.cs @@ -13,7 +13,7 @@ public async Task PushAsync(IEnumerable nugetPaths) // Is Wildcard? foreach (var file in GlobFiles.EnumerateFiles(path)) { - await PushCoreAsync(path, apiKey, dryRun); + await PushCoreAsync(file, apiKey, dryRun); } } else