Add a demo deploy step to CI

This commit is contained in:
Christopher C. Wells 2021-11-07 13:53:58 -08:00
parent 4c1eb06145
commit 4b884fd030
1 changed files with 15 additions and 0 deletions

View File

@ -59,3 +59,18 @@ jobs:
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
deploy:
needs: test
runs-on: ubuntu-latest
env:
DEPLOY_DEMO: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
steps:
- if: ${{ env.DEPLOY_DEMO }}
uses: actions/checkout@v2
- if: ${{ env.DEPLOY_DEMO }}
name: Deploy demo
uses: akhileshns/heroku-deploy@v3.12.12
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}