diff --git a/.github/workflows/dotnet.yaml b/.github/workflows/dotnet.yaml index 767535e..9eb49fc 100644 --- a/.github/workflows/dotnet.yaml +++ b/.github/workflows/dotnet.yaml @@ -227,7 +227,7 @@ jobs: - name: Publish to NuGet id: publish-success env: - NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }} + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} run: 'nix develop --command bash ./.github/workflows/nuget-push.sh "packed/WoofWare.DotnetRuntimeLocator.*.nupkg"' - name: Wait for availability if: steps.publish-success.outputs.result == 'published' diff --git a/.github/workflows/nuget-push.sh b/.github/workflows/nuget-push.sh index 43cd285..fe05686 100644 --- a/.github/workflows/nuget-push.sh +++ b/.github/workflows/nuget-push.sh @@ -1,6 +1,6 @@ #!/bin/bash -SOURCE_NUPKG=$(find . type f -name '*.nupkg') +SOURCE_NUPKG=$(find . -type f -name '*.nupkg') PACKAGE_VERSION=$(basename "$SOURCE_NUPKG" | rev | cut -d '.' -f 2-4 | rev)