diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index 972d7f4bb..7bba05586 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -27,7 +27,7 @@ jobs: run: dotnet build --configuration Release --no-restore -p:CIRun=true - name: Create the package run: dotnet pack --output nupkg --configuration Release - - name: Define package source - run: dotnet nuget add source --username Systemorph --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Publish the packages to GPR - run: dotnet nuget push ./nupkg/*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} + run: dotnet nuget push nupkg/*.nupkg --source https://nuget.pkg.github.com/Systemorph/index.json --api-key ${GITHUB_TOKEN} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}