Skip to content

Update CONTRIBUTING.md #43

Update CONTRIBUTING.md

Update CONTRIBUTING.md #43

Workflow file for this run

name: Deploy Static Site to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Check out your code
- name: Checkout Code
uses: actions/checkout@v4
# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
# Step 3: Install Dependencies (Jinja2)
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install jinja2
# Step 4: Build Static Site
- name: Build Static Site
run: python scripts/build_static.py
# Step 5: Deploy the '_site' folder
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
force_orphan: true # Keeps the deployment branch clean and history-free
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'