mirror of https://github.com/snachodog/mybuddy.git
Add a demo deploy step to CI
This commit is contained in:
parent
4c1eb06145
commit
4b884fd030
|
@ -59,3 +59,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.github_token }}
|
github-token: ${{ secrets.github_token }}
|
||||||
parallel-finished: true
|
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 }}
|
||||||
|
|
Loading…
Reference in New Issue