From 5f82d282569c5ea38df1be5f365600a846d2134a Mon Sep 17 00:00:00 2001 From: Sam Jesso Date: Sat, 15 Mar 2025 11:10:00 -0300 Subject: [PATCH] Run publish action when a merge is performed on the main branch (is this really how you do it? yuck...) --- .github/workflows/publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index da07d48..14fa3f3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,12 +2,16 @@ name: Publish on: push: - branches: [ main, master ] + branches: [ main ] + pull_request: + types: [ closed ] + branches: [ main ] jobs: publish: runs-on: ubuntu-latest environment: production + if: github.event.pull_request.merged == true || github.event_name == 'push' steps: - uses: actions/checkout@v4 - name: Set up JDK 8