Skip to content

fix action

fix action #4

name: Build & Publish Experiment Timeline (gh-pages)
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write # needed to push to gh-pages
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pandas plotly numpy
- name: Generate timeline visualizations
run: |
# If your script writes output into a subfolder (e.g. ./site),
# make sure to set publish_dir to that same folder below.
python scripts/generate_timeline.py
- name: Avoid Jekyll processing (optional)
run: touch .nojekyll
# Publish repo root to gh-pages (adjust publish_dir if needed)
- name: Publish to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
# If your script writes to ./site instead, use:
# publish_dir: ./site
# Optional: keep a custom domain
# cname: example.org