Skip to content

Commit

Permalink
init action
Browse files Browse the repository at this point in the history
  • Loading branch information
lfunderburk committed Dec 2, 2023
1 parent 974f207 commit 7f8c444
Show file tree
Hide file tree
Showing 3 changed files with 1,339 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Ploomber cloud deploy,en

on:
schedule:
- cron: '0 0 * * *'

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- 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: Add data to repo
run: |
cd mini-projects/end-to-end/
git config --global user.email ""
git config --global user.name "Ploomber"
git add weather.csv
git commit -m "Update data"
git push
- name: Deploy to Ploomber cloud
run: |
cd mini-projects/end-to-end/
ploomber-cloud deploy
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,5 @@ mini-projects/movie_rec_system/movie_rec_system/products/etl/extract-pipeline.ip
!docs/mini-projects/recommendation-system/movies_data.duckdb
mini-projects/movie-rec-system/movie_rec_system/products/eda-pipeline.ipynb
mini-projects/movie-rec-system/movie_rec_system/products/extract-pipeline.ipynb

!mini-projects/end-to-end/weather.csv
Loading

0 comments on commit 7f8c444

Please sign in to comment.