Repository navigation
executable file
·78 lines (65 loc) · 2.35 KB
/
Copy pathbuilddevdoc.yml
File metadata and controls
executable file
·78 lines (65 loc) · 2.35 KB
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
name: "Build doc from develop (plugins)"
on:
workflow_dispatch:
push:
branches:
- 'develop'
jobs:
build:
# Only run on the upstream repository — forks have no dev_doc companion repo
# and lack the PAT_TOKEN secret required for the deploy step.
if: github.repository == 'smarthomeNG/plugins'
runs-on: ubuntu-22.04 #latest
strategy:
fail-fast: false
matrix:
python-version: ['3.11']
name: Python ${{ matrix.python-version }}
steps:
- name: update OS (Ubuntu)
run: sudo apt-get update
- run: sudo apt-get install libudev-dev
- run: sudo apt-get install librrd-dev libpython3-dev
- run: sudo apt-get install gcc --only-upgrade
- run: sudo locale-gen de_DE.UTF-8
- run: locale -a
- uses: actions/checkout@v4
- name: Checkout SmartHomeNG DEVELOP Branch
uses: actions/checkout@v4
with:
repository: smarthomeNG/smarthome
ref: develop
path: smarthomeng
- name: Checkout SmartHomeNG/plugins DEVELOP Branch
uses: actions/checkout@v4
with:
repository: smarthomeNG/plugins
ref: develop
path: smarthomeng/plugins
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Print Python Version
run: python --version
- run: python3 -m pip install --upgrade pip
- name: Install requirements for documentation build
run: pip install -r smarthomeng/doc/requirements.txt
- name: Build Requirements for SmartHomeNG
run: python3 smarthomeng/tools/build_requirements.py
- name: Install SmartHomeNG base requirements
# base requirements are needed for building of documentation
run: pip install -r smarthomeng/requirements/base.txt
- name: List installed packages
run: pip list
- name: Build documentation
working-directory: ./smarthomeng/doc
run: bash ./build_doc_local.sh
- name: Deploy documentation to seperate repo dev_doc
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages
folder: ./smarthomeng/doc/user/build/html
repository-name: 'smarthomeNG/dev_doc'
token: ${{ secrets.PAT_TOKEN }}