diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5017197..6f722ab 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -7,6 +7,9 @@ on: - "release/*" tags: - "*" + pull_request: + branches: + - main jobs: deploy: @@ -17,12 +20,17 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - source-url: https://api.nuget.org/v3/index.json + # source-url: https://api.nuget.org/v3/index.json env: NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}} - - name: Build packages - run: | - dotnet --info - dotnet pack -c Release -o packages + # - name: Build packages + # run: | + # dotnet --info + # dotnet pack -c Release -o packages - name: Push to NuGet.org - run: dotnet nuget push packages/*.nupkg --skip-duplicate + # env: + # NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}} + run: | + cat nuget.config + echo dotnet nuget push packages/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate + # run: dotnet nuget push packages/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json --skip-duplicate