Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Jun 27, 2024
1 parent 7999f1c commit cf2d314
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Generate References.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf2d314

Please sign in to comment.