Skip to content

update: added dotenv import in app.py #8

update: added dotenv import in app.py

update: added dotenv import in app.py #8

name: Ploomber Cloud
on:
push:
branches:
# only deploy from the main branch
- main
jobs:
deploy-to-ploomber-cloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ploomber-cloud
- name: Create environment file
shell: bash
env:
SECRET_URL: ${{ secrets.SUPABASE_URL }}
SECRET_KEY: ${{ secrets.SUPABASE_KEY }}
run: |
pwd
printf "SUPABASE_URL=$SECRET_URL\nSUPABASE_KEY=$SECRET_KEY" > app/.env
- name: Deploy
env:
PLOOMBER_CLOUD_KEY: ${{ secrets.PLOOMBER_CLOUD_KEY }}
run: |
cd app/
ploomber-cloud deploy --watch
# The --watch flag will print deployment status updates to the logs.
# To learn more, visit: https://docs.cloud.ploomber.io/en/latest/user-guide/github.html