Skip to content

Commit

Permalink
Add bash script to push nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel2215 committed Jun 14, 2024
1 parent 1f2c67c commit 24ac283
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/push_nuget.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

cd ../src

dotnet build
dotnet publish
dotnet pack

latest_package=$(ls ./bin/Release/ChatAIze.DopamineUI.*.*.*.nupkg | sort -V | tail -n 1)

dotnet nuget push "$latest_package" --api-key "$CHATAIZE_NUGET_API_KEY" --source "https://api.nuget.org/v3/index.json"
dotnet nuget push "$latest_package" --api-key "$GITHUB_PAT" --source "https://nuget.pkg.github.com/chataize/index.json"

0 comments on commit 24ac283

Please sign in to comment.