From a18fe024013c70bb14682afea876857723fc0822 Mon Sep 17 00:00:00 2001 From: Chris Maltby Date: Fri, 15 Mar 2024 16:18:42 +0000 Subject: [PATCH] Only build release on main, develop and *-beta branches --- .github/workflows/main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 031e32b20..82fe4521c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,11 +5,13 @@ on: branches: - develop - main - - github-actions + - feat/* + - *-beta + workflow_dispatch: jobs: - test_suite: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -27,9 +29,10 @@ jobs: run: | yarn test - checkout_and_build: - needs: test_suite + deploy: + needs: test runs-on: ${{ matrix.os }} + if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || endsWith(github.ref, '-beta') strategy: matrix: @@ -47,6 +50,7 @@ jobs: label: Windows 64-bit os: ubuntu-latest - name: linux + label: Linux os: ubuntu-latest steps: