name: Deploy

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: akhileshns/heroku-deploy@v3.12.12 # This is the action
        with:
          heroku_api_key: ${{secrets.HEROKU_API_KEY}}
          heroku_app_name: "cfp-next-staging" #Must be unique in Heroku
          heroku_email: "adarsh@cylinder.work"

Add a GitHub Workflow config file
Add a GitHub Workflow config file

Reason for Change
=================
* We should be able to deploy automatically from `main` to staging once merge is complete

Changes
=======
* Added a workflow config file
* Reference: https://github.com/marketplace/actions/deploy-to-heroku
