Skip to content

Site Builder

Site Builder #478

Workflow file for this run

name: Site Builder
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
build-site:
runs-on: ubuntu-latest
concurrency: build-site-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install Dependencies
run: pip install -r _src/requirements.txt
- name: Rebuild Site
run: python _src/site-builder.py
- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
commit_message: 'Update themes website'
exclude_assets: '.github,_src'
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
user_name: 'Github Actions'
user_email: 'actions@github.com'