Skip to content

Commit 326eb2d

Browse files
committed
ci: always push preview releases to nuget.org
1 parent 5a6f8b5 commit 326eb2d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.github/workflows/release-preview.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ on:
77
types: [completed]
88
branches: [main, v2]
99

10-
workflow_dispatch:
11-
inputs:
12-
nugetRelease:
13-
description: 'Release to NuGet? Set to "true" to release to NuGet.org as well as GPR.'
14-
required: true
15-
default: 'true'
16-
1710
jobs:
1811
release-preview:
1912
if: github.event_name == 'workflow_dispatch' || (github.ref == 'refs/heads/main' && ${{ github.event.workflow_run.conclusion == 'success' }}) || (github.ref == 'refs/heads/v2' && ${{ github.event.workflow_run.conclusion == 'success' }})
@@ -58,5 +51,4 @@ jobs:
5851
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/bunit-dev/index.json --skip-duplicate --no-symbols
5952

6053
- name: 🛠️ Upload library to NuGet.org repository
61-
if: github.event.inputs.nugetRelease == 'true'
6254
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols

0 commit comments

Comments
 (0)