File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments