-
Notifications
You must be signed in to change notification settings - Fork 21
39 lines (37 loc) · 916 Bytes
/
build-docs.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
36
37
38
39
name: Build docs
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
with:
ref: gh-pages
token: ${{ secrets.DOCS_BOT_PAT }}
- name: git config
run: |
git config --local user.email "actions@github.com"
git config --local user.name "theOGognf"
- name: Reset to main
run: |
git fetch
git reset --hard origin/main
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Build docs
run: tox -e docs
- name: Update docs
run: |
git add -f docs/
git commit -m "Update docs"
git push -f origin