From 785d2c1e16e50cd61b177c5bcce095e6fca0d8d2 Mon Sep 17 00:00:00 2001 From: Bruno Salzano Date: Mon, 28 Oct 2024 13:45:59 +0100 Subject: [PATCH] fix: github action changed github action. Moved the publish action on pull_request closed and merged is true (or, like before, on push to main) --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eec6139b..9b76404c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,14 @@ -name: test +name: website on: pull_request: types: [closed] + push: + branches: + - main + + env: PUBLISH_DIRECTORY: public @@ -12,7 +17,7 @@ permissions: jobs: publish: - if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' + if: github.event_name == 'push' || github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' runs-on: ubuntu-latest steps: - name: Checkout repository