Skip to content

Commit

Permalink
Only build release on main, develop and *-beta branches
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Mar 15, 2024
1 parent a8360a1 commit a18fe02
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -47,6 +50,7 @@ jobs:
label: Windows 64-bit
os: ubuntu-latest
- name: linux
label: Linux
os: ubuntu-latest

steps:
Expand Down

0 comments on commit a18fe02

Please sign in to comment.