Skip to content

feat: make web preview use real arxiv/pubmed candidates and model sel… #11

feat: make web preview use real arxiv/pubmed candidates and model sel…

feat: make web preview use real arxiv/pubmed candidates and model sel… #11

name: deploy-demo-pages
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "docs/**"
- "scripts/generate_demo_html.py"
- "app/paper_digest_app.py"
- ".github/workflows/deploy-demo-pages.yml"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: demo-pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: python -m pip install --upgrade pip && pip install -r deps/requirements.txt
- name: Generate demo HTML
run: python scripts/generate_demo_html.py
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4