Skip to content

Deploy Graph Break Site #511

Deploy Graph Break Site

Deploy Graph Break Site #511

Workflow file for this run

name: Deploy Graph Break Site
on:
push:
branches:
- main
schedule:
- cron: '*/3 * * * *'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for proper git operations
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: pip install requests
- name: Build site
run: python generate-site.py
- name: Deploy with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./_site
- name: Commit and Push
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add docs/
git commit -m "Deploy: Update graph break site" || echo "No changes to commit"
git push