diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 711b4936..864a72c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -106,3 +106,9 @@ jobs: name: CppSharp.nupkg path: | artifacts/*.nupkg + + - name: Upload package to GitHub Packages + run: | + cd artifacts + dotnet nuget add source --username tritao --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/tritao/index.json" + dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate