From 5af8097883f502db85365c91824912554001623d Mon Sep 17 00:00:00 2001 From: Jason Madigan Date: Tue, 11 Jun 2024 10:10:28 +0100 Subject: [PATCH] builds for all branches, deploy only for main. --- .github/workflows/build.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 656d3266..a4b8a0fb 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,20 +4,20 @@ on: workflow_dispatch: push: branches: - - main + - '**' pull_request: branches: - - main - # schedule: - # # Runs at 00:00 UTC every day - # - cron: '0 0 * * *' + - '**' permissions: contents: write jobs: deploy: - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' + if: | + github.event_name == 'push' || + github.event_name == 'workflow_dispatch' || + (github.event_name == 'pull_request' && github.base_ref == 'main') runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -42,7 +42,6 @@ jobs: mike deploy --push dev -t "dev" build: - if: github.event_name == 'pull_request' || github.event_name == 'schedule' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3