-
-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3855 from legalsylvain/16.0-documentation-update-…
…website-onchange-module-coverage [ADD][16.0] New documentation workflow to update documentation website if the coverage changed
- Loading branch information
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# On each push in 16.0 branch, | ||
# AND if the coverage file changed, | ||
# build documentation branch and commit the changes | ||
# so that the changes are visible on the website | ||
# https://oca.github.io/OpenUpgrade/ | ||
|
||
name: Build and commit documentation | ||
|
||
on: | ||
push: | ||
paths: ["docsource/modules150-160.rst"] | ||
|
||
jobs: | ||
documentation-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out OpenUpgrade Documentation | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: "documentation" | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Check out Odoo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: odoo/odoo | ||
ref: "16.0" | ||
fetch-depth: 1 | ||
path: odoo | ||
- name: Configuration | ||
run: | | ||
sudo apt update | ||
sudo apt install \ | ||
expect \ | ||
expect-dev \ | ||
libevent-dev \ | ||
libldap2-dev \ | ||
libsasl2-dev \ | ||
libxml2-dev \ | ||
libxslt1-dev \ | ||
nodejs \ | ||
python3-lxml \ | ||
python3-passlib \ | ||
python3-psycopg2 \ | ||
python3-serial \ | ||
python3-simplejson \ | ||
python3-werkzeug \ | ||
python3-yaml \ | ||
unixodbc-dev | ||
- name: Requirements Installation | ||
run: | | ||
pip install -q -r odoo/requirements.txt | ||
pip install -r ./requirements.txt | ||
- name: OpenUpgrade Docs | ||
run: | | ||
# try to build the documentation | ||
sh ./build_openupgrade_docs | ||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
add: "docs" | ||
default_author: github_actions | ||
message: "[UPD] HTML documentation" |