File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,8 @@ jobs:
145145 reporter : dotnet-trx
146146 # Package and upload to MyGet only on pushes to main, not on PRs
147147 - name : .NET Pack
148- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
148+ if : ( github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
149149 run : dotnet pack Build.csproj --no-build -c Release /p:PackageOutputPath=${env:GITHUB_WORKSPACE}\.nupkgs /p:CI=true
150150 - name : Upload to MyGet
151- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
151+ if : ( github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
152152 run : dotnet nuget push ${env:GITHUB_WORKSPACE}\.nupkgs\*.nupkg -s https://www.myget.org/F/stackoverflow/api/v2/package -k ${{ secrets.MYGET_API_KEY }}
You can’t perform that action at this time.
0 commit comments