Skip to content

Commit a6968c4

Browse files
committed
Fix nuget publishing CI
1 parent 32ca905 commit a6968c4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
run: dotnet test --configuration Release --no-build --verbosity normal
4040

4141
- name: Pack
42-
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.event.inputs.publish == 'true')
42+
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
4343
run: dotnet pack --configuration Release --no-build --output ./artifacts
4444

4545
- name: Upload artifacts
46-
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.event.inputs.publish == 'true')
46+
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
4747
uses: actions/upload-artifact@v4
4848
with:
4949
name: nuget-packages
@@ -52,7 +52,7 @@ jobs:
5252
publish:
5353
needs: build
5454
runs-on: ubuntu-latest
55-
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.event.inputs.publish == 'true')
55+
if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
5656

5757
steps:
5858
- name: Download artifacts

0 commit comments

Comments
 (0)