Skip to content

Merge pull request #1 from magicsword-io/jinja-fix #16

Merge pull request #1 from magicsword-io/jinja-fix

Merge pull request #1 from magicsword-io/jinja-fix #16

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Generate Site
on:
push:
branches: [ main ]
jobs:
generate-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.PUSH_TOKEN }}
- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: 3.11
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python -
- name: Install dependencies with Poetry
run: poetry install
- name: Run Site Generation
run: poetry run python bin/site.py -v
- name: Run Site Generation
run: poetry run python bin/gen-files.py
- name: Commit Generated Data
run: |
git config --global user.name "Github Actions"
git config --global user.email "[email protected]"
git config --global push.default simple
git add .
git commit -m "New site and hashes generated by GitHub Actions [ci skip]"
git push