diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index bbcb0cf..c6d0f4c 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -34,18 +34,7 @@ jobs: run: dotnet pack --configuration Release --output ./nupkgs - name: Add GitHub Packages as a NuGet source - shell: pwsh - run: | - dotnet nuget add source ` - https://nuget.pkg.github.com/devexlead/index.json ` - --name github ` - --username ${{ github.repository_owner }} ` - --password ${{ secrets.GITHUB_TOKEN }} ` + run: dotnet nuget add source https://nuget.pkg.github.com/devexlead/index.json --name github --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} - name: Publish to GitHub Packages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - dotnet nuget push ./nupkgs/*.nupkg \ - --source "github" \ - --api-key $GITHUB_TOKEN + run: dotnet nuget push ./nupkgs/*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}