Skip to content

Update deployment.yml #2

Update deployment.yml

Update deployment.yml #2

Workflow file for this run

name: Deploy to Heroku
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Login to Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: echo "$HEROKU_API_KEY" | heroku auth:token
- name: Add Heroku remote
run: heroku git:remote -a rapidlinkapp
- name: Deploy to Heroku
run: git push heroku main