Skip to content

Commit

Permalink
add deploy to branch in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolm-kee committed Jun 7, 2020
1 parent da84443 commit dc35a53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ jobs:
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

- name: Deploy Branch
run: yarn deploy --branch=${GITHUB_REF##*/}
if: ${{ github.ref == 'refs/heads/redux' || github.ref == 'refs/heads/mobx' }}
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 comments on commit dc35a53

Please sign in to comment.