-
-
Notifications
You must be signed in to change notification settings - Fork 173
40 lines (32 loc) · 1.06 KB
/
documentation-commit.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
40
# On each push in 'master' branch,
# build documentation and commit the changes
# so that the changes are visible on the website
# https://oca.github.io/openupgradelib/
name: Build and commit documentation
on:
push:
branches: ["master"]
jobs:
documentation-commit:
runs-on: ubuntu-22.04
container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
steps:
- uses: actions/checkout@v3
# See: https://github.com/OCA/openupgradelib/pull/324#issuecomment-1556255121
- name: configure Git
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Requirements Installation
run: |
pip install -e .
pip install -r ./doc_requirements.txt
- name: OpenUpgradelib Docs
run: |
# try to build the documentation
python3 -m sphinx -W -d ./docs/.doctrees ./docsource ./docs
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
add: "docs"
default_author: github_actions
message: "[UPD] HTML documentation"