From 5f82d282569c5ea38df1be5f365600a846d2134a Mon Sep 17 00:00:00 2001 From: Sam Jesso Date: Sat, 15 Mar 2025 11:10:00 -0300 Subject: [PATCH 1/2] 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 From 5c87706ce33710d50d143e488ca054f605482b8d Mon Sep 17 00:00:00 2001 From: Sam Jesso Date: Sat, 15 Mar 2025 11:18:15 -0300 Subject: [PATCH 2/2] Github actions fix --- .github/workflows/publish.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 14fa3f3..da892fb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,15 +3,11 @@ name: Publish on: push: 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