.github/workflows/backend-cd.yml
name: Back-end CD
on:
push:
branches:
- master
- main
jobs:
backend-cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 🚀 Deploy back-end to Heroku
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}}
usedocker: true
appdir: api
docker_heroku_process_type: web