Skip to content

Commit

Permalink
ci: Refactor CD workflow to streamline publish steps
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 2, 2024
1 parent 2aeb433 commit fa5cab6
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/cd_release_please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit fa5cab6

Please sign in to comment.