From fa5cab6240e47202ed781ff0fca5b5ad359f05c5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 2 Dec 2024 08:51:19 +0000 Subject: [PATCH] ci: Refactor CD workflow to streamline publish steps --- .github/workflows/cd_release_please.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cd_release_please.yml b/.github/workflows/cd_release_please.yml index e89c815..dbef726 100644 --- a/.github/workflows/cd_release_please.yml +++ b/.github/workflows/cd_release_please.yml @@ -47,7 +47,6 @@ jobs: uses: lekman/release-please-dotnet@v1 with: manifest: ".release-please-manifest.json" - branch: ${{ github.event.pull_request.head.ref || github.ref_name }} publish: name: Publish @@ -65,14 +64,9 @@ jobs: with: dotnet-version: "9.0.x" - - name: Restore dependencies - run: dotnet restore - - - name: Build - run: dotnet build - - - name: Publish - run: dotnet publish -c Release - - name: Publish to Nuget - run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate + run: | + dotnet restore + dotnet build + dotnet publish -c Release + dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate