From fee44fc4315a43311c500c068f6fdb04d1897ac2 Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Wed, 5 Jun 2024 14:27:44 -0700 Subject: [PATCH] Push to internal nuget feed on CI --- .github/workflows/main.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0084f454..18ed0795 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,19 +49,19 @@ jobs: name: build-artifacts path: ${{github.workspace}}/artifacts - # - name: NuGet Autenticate - # if: github.event_name != 'pull_request' - # run: dotnet nuget add source - # "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - # --name "github" - # --username ${{ github.actor }} - # --password ${{ secrets.GITHUB_TOKEN }} - # --store-password-in-clear-text + - name: NuGet Autenticate + if: github.event_name != 'pull_request' + run: dotnet nuget add source + "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" + --name "github" + --username ${{ github.actor }} + --password ${{ secrets.GITHUB_TOKEN }} + --store-password-in-clear-text - # - name: Publish - # if: github.event_name != 'pull_request' - # run: dotnet nuget push - # ${{github.workspace}}/artifacts/packages/*.nupkg - # --source "github" - # --api-key ${{ secrets.GITHUB_TOKEN }} - # --skip-duplicate + - name: Publish + if: github.event_name != 'pull_request' + run: dotnet nuget push + ${{github.workspace}}/artifacts/packages/*.nupkg + --source "github" + --api-key ${{ secrets.GITHUB_TOKEN }} + --skip-duplicate