From a52f8090cf7b9184e210d5f1759794ab22af1095 Mon Sep 17 00:00:00 2001 From: Jason Madigan Date: Wed, 10 Jul 2024 12:56:08 +0100 Subject: [PATCH] Revert "builds for all branches, deploy only for main." This reverts commit 5af8097883f502db85365c91824912554001623d. --- .github/workflows/build.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a4b8a0fb..656d3266 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' || - (github.event_name == 'pull_request' && github.base_ref == 'main') + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -42,6 +42,7 @@ 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