Skip to content

Parse and Deploy

Parse and Deploy #12

Workflow file for this run

name: Parse and Deploy
on:
schedule:
- cron: "0 4 * * *"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
parse-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.7'
- name: Install requirements
run: pip install -r requirements.txt
- name: Run Scraper
run: python parse.py
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ${{github.workspace}}/web
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1