mirror of https://github.com/snachodog/mybuddy.git
Move CI deploy steps conditional to job level
This commit is contained in:
parent
828e9ffa3f
commit
2fea4c8806
|
@ -61,13 +61,10 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
DEPLOY_DEMO: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
|
||||||
steps:
|
steps:
|
||||||
- if: ${{ env.DEPLOY_DEMO }}
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v2
|
- name: Deploy demo
|
||||||
- if: ${{ env.DEPLOY_DEMO }}
|
|
||||||
name: Deploy demo
|
|
||||||
uses: akhileshns/heroku-deploy@v3.12.12
|
uses: akhileshns/heroku-deploy@v3.12.12
|
||||||
with:
|
with:
|
||||||
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
|
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
|
||||||
|
|
Loading…
Reference in New Issue