Refresh Dashboard #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Refresh Dashboard | |
on: | |
schedule: | |
- cron: '45 10 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install Requirements | |
run: | | |
cd forecasting_dashboard_app/ | |
pip install -r requirements.txt | |
- name: Set up credentials | |
run: | | |
cd forecasting_dashboard_app/ | |
touch .env | |
echo MOTHERDUCK_TOKEN=${{ secrets.MOTHERDUCK_TOKEN }} >> .env | |
- name: Deploy Streamlit App to Ploomber-Cloud | |
run: | | |
cd forecasting_dashboard_app/ | |
ploomber-cloud key ${{ secrets.PLOOMBER_API_KEY }} | |
ploomber-cloud deploy |