forked from Viindoo/OpenUpgrade
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (75 loc) · 2.19 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# This workflow will install Python dependencies, run tests and lint with a
# single version of Python. For more information see:
# https://help.github.com/actions/language-and-framework-guides\
# /using-python-with-github-actions
name: Build and commit documentation
on:
push:
branches: ["14.0"]
jobs:
documentation:
runs-on: ubuntu-latest
env:
DB: "openupgrade"
DB_HOST: "localhost"
DB_PASSWORD: "odoo"
DB_PORT: 5432
DB_USERNAME: "odoo"
DOWNLOADS: https://github.com/OCA/OpenUpgrade/releases/download/databases
ODOO: "./odoo/odoo-bin"
PGHOST: "localhost"
PGPASSWORD: "odoo"
PGUSER: "odoo"
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Check out Odoo
uses: actions/checkout@v2
with:
repository: odoo/odoo
ref: "14.0"
fetch-depth: 1
path: odoo
- name: Check out OpenUpgrade
uses: actions/checkout@v2
with:
path: openupgrade
- 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 --ignore-installed \
git+https://github.com/OCA/openupgradelib.git@master
pip install sphinx
- name: OpenUpgrade Docs
run: |
# try to build the documentation
sh openupgrade/build_openupgrade_docs
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
add: "docs"
cwd: "openupgrade"
default_author: github_actions
message: "[UPD] HTML documentation"