-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (34 loc) · 1.2 KB
/
generate-site.yml
File metadata and controls
37 lines (34 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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/setup-python@v4.5.0
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 "robot@noreply.github.com"
git config --global push.default simple
git add .
git commit -m "New site and hashes generated by GitHub Actions [ci skip]"
git push