Site Builder #478
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |