Skip to content

Commit 3ce6682

Browse files
authored
CI: manual run should pack/deploy
1 parent f1b7fa7 commit 3ce6682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)