Make deploy to work only on master

main
midudev 3 years ago
parent 5dae0eb81c
commit f04b1a0047

@ -32,10 +32,11 @@ jobs:
start: npm run start-test
wait-on: http://localhost:5000
- name: Deploy to Heroku
if: ${{ github.event_name == 'push' }}
uses: akhileshns/heroku-deploy@v3.12.12
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: ${{secrets.HEROKU_APP}}
heroku_email: ${{secrets.HEROKU_API_EMAIL}}
healthcheck: "https://${{secrets.HEROKU_APP}}/health"
healthcheck: "https://${{secrets.HEROKU_APP}}.herokuapp.com/health"
rollbackonhealthcheckfailed: true

Loading…
Cancel
Save