check github.ref value

This commit is contained in:
Ruidy Nemausat 2020-05-17 08:34:16 +02:00
parent 27a0c5addf
commit 1ff9336bce

View file

@ -4,6 +4,7 @@ on: [push]
jobs:
test:
name: Test
if: ${{ github.ref == 'master' }}
runs-on: ubuntu-latest
env:
REACT_APP_STORAGE_BUCKET: ${{ secrets.REACT_APP_STORAGE_BUCKET }}
@ -26,12 +27,12 @@ jobs:
start: yarn start
wait-on: 'http://localhost:3000'
release:
if: ${{ github.ref == 'master' }}
needs: test
name: Release
# if: ${{ github.ref == 'master' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
run: echo github.ref
- name: Build
run: yarn build
- name: Install Firebase CLI tools