mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-12 05:26:46 +00:00
check github.ref value
This commit is contained in:
parent
27a0c5addf
commit
1ff9336bce
1 changed files with 3 additions and 2 deletions
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
|
|
@ -4,6 +4,7 @@ on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
|
if: ${{ github.ref == 'master' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
REACT_APP_STORAGE_BUCKET: ${{ secrets.REACT_APP_STORAGE_BUCKET }}
|
REACT_APP_STORAGE_BUCKET: ${{ secrets.REACT_APP_STORAGE_BUCKET }}
|
||||||
|
|
@ -26,12 +27,12 @@ jobs:
|
||||||
start: yarn start
|
start: yarn start
|
||||||
wait-on: 'http://localhost:3000'
|
wait-on: 'http://localhost:3000'
|
||||||
release:
|
release:
|
||||||
if: ${{ github.ref == 'master' }}
|
|
||||||
needs: test
|
|
||||||
name: Release
|
name: Release
|
||||||
|
# if: ${{ github.ref == 'master' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
run: echo github.ref
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build
|
run: yarn build
|
||||||
- name: Install Firebase CLI tools
|
- name: Install Firebase CLI tools
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue