-
Notifications
You must be signed in to change notification settings - Fork 121
35 lines (33 loc) · 1.02 KB
/
generate-site.yml
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
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 pull --rebase origin main
git push