Skip to content

fix: Track historical TVL for Lighter pools via PnL endpoint (#782) #222

fix: Track historical TVL for Lighter pools via PnL endpoint (#782)

fix: Track historical TVL for Lighter pools via PnL endpoint (#782) #222

Workflow file for this run

name: Build documentation
on:
push:
branches: [master]
jobs:
build-docs:
runs-on:
group: Beefy runners
# Only run the action for the latest push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Permissions for Cloudflare Pages deployment
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
submodules: false
# Poetry must be installed before setup-python for cache to work
# https://github.com/python-poetry/poetry/blob/main/CHANGELOG.md
- name: Install poetry
run: pipx install "poetry>=2.3"
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
cache-dependency-path: |
**/pyproject.toml
# Required by nbsphinx for notebook conversion
- name: Install Pandoc
run: sudo apt-get update && sudo apt-get install -y pandoc
# Install dependencies with the specific Web3.py version
# Using a single installation command to avoid conflicts
- name: Install dependencies
run: |
poetry install -E docs -E data -E test -E hypersync -E ccxt -E duckdb
- name: Build documentation
run: |
poetry run make build-docs
- name: Install wrangler
run: npm install -g wrangler
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: make deploy-docs-cloudflare-only