Skip to content

Commit 9234149

Browse files
committed
Packaging fixes
1 parent ff3afbe commit 9234149

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/package.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ env:
2727

2828
jobs:
2929
build:
30-
name: Build
30+
name: Build and Package
3131
timeout-minutes: 15
3232
runs-on: ubuntu-latest
3333

@@ -236,10 +236,11 @@ jobs:
236236
path: packages
237237

238238
- name: Push packages to nuget.org
239-
run: dotnet nuget push '${{ github.workspace }}/packages/*.nupkg' --api-key '${{ secrets.STEELTOE_NUGET_API_KEY }}' --source 'nuget.org'
239+
run: dotnet nuget push '${{ github.workspace }}/packages/*.nupkg' --skip-duplicate --api-key '${{ secrets.STEELTOE_NUGET_API_KEY }}' --source 'nuget.org'
240240

241241
open_pr:
242-
name: Open pull request to bump Steeltoe version after release
242+
name: Open pull request to bump Steeltoe version after stable release
243+
if: ${{ github.event_name == 'release' && !contains(github.ref_name, '-') }}
243244
needs: nuget-org-deploy
244245
timeout-minutes: 15
245246
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)