update data and deploy #481
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: update data and deploy | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
push: | |
branches: | |
- 'standalone' | |
jobs: | |
update-course: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: standalone | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: "Install crawler's dependencies" | |
run: | | |
pip install Scrapy | |
- name: "Execute the crawler" | |
working-directory: ./crawler | |
run: | | |
scrapy crawl courses | |
- name: deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./ |