diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30bdda71a..7ed835aa5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ name: Build JavaBot -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] jobs: build: @@ -24,7 +24,7 @@ jobs: publish: runs-on: ubuntu-latest needs: build - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' }} steps: - uses: actions/checkout@v4 - name: Set up JDK 17