Skip to content

Commit

Permalink
Merge pull request #3855 from legalsylvain/16.0-documentation-update-…
Browse files Browse the repository at this point in the history
…website-onchange-module-coverage

[ADD][16.0] New documentation workflow to update documentation website if the coverage changed
  • Loading branch information
pedrobaeza authored May 7, 2023
2 parents 8addb1a + e99583d commit 3ebc931
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/documentation-commit.yml
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"

0 comments on commit 3ebc931

Please sign in to comment.