diff --git a/.github/workflows/Generate References.yml b/.github/workflows/Generate References.yml index 2722c0a..c145c07 100644 --- a/.github/workflows/Generate References.yml +++ b/.github/workflows/Generate References.yml @@ -46,18 +46,18 @@ jobs: - name: Check files id: check_files - run: echo "files_exists=$([[ "$(ls -A ./src/Bannerlord.ReferenceAssemblies/bin/Release/net6.0/final)" ]] && echo "true" || echo "false")" >> "$GITHUB_OUTPUT" + run: echo "files_exists=$([[ "$(ls -A ./src/Bannerlord.ReferenceAssemblies/bin/Release/net8.0/final)" ]] && echo "true" || echo "false")" >> "$GITHUB_OUTPUT" shell: bash - name: Push to NuGet if: steps.check_files.outputs.files_exists == 'true' - run: dotnet nuget push "./src/Bannerlord.ReferenceAssemblies/bin/Release/net6.0/final/*.nupkg" --skip-duplicate -k ${{secrets.NUGET_API_KEY}} -s https://www.nuget.org + run: dotnet nuget push "./src/Bannerlord.ReferenceAssemblies/bin/Release/net8.0/final/*.nupkg" --skip-duplicate -k ${{secrets.NUGET_API_KEY}} -s https://www.nuget.org shell: pwsh - name: Push to GPR if: steps.check_files.outputs.files_exists == 'true' run: | - for f in ./src/Bannerlord.ReferenceAssemblies/bin/Release/net6.0/final/*.nupkg + for f in ./src/Bannerlord.ReferenceAssemblies/bin/Release/net8.0/final/*.nupkg do curl -vX PUT -u "vslee:${{secrets.GITHUB_TOKEN}}" -F package=@$f https://nuget.pkg.github.com/BUTR/ done