Ploomber cloud deploy,en #205
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: Ploomber cloud deploy,en | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
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: Set up credentials | |
run: | | |
cd mini-projects/end-to-end/ | |
touch .env | |
echo RapidAPI=${{ secrets.RapidAPI }} >> .env | |
cat .env | |
- name: Install dependencies | |
run: | | |
cd mini-projects/end-to-end/ | |
pip install -r requirements.txt | |
- name: Execute data download | |
run: | | |
cd mini-projects/end-to-end/ | |
python dataextraction.py | |
- name: Deploy to Ploomber cloud | |
run: | | |
cd mini-projects/end-to-end/ | |
ploomber-cloud deploy |