|
15 | 15 |
|
16 | 16 | jobs:
|
17 | 17 |
|
18 |
| - build-docs: |
19 |
| - name: Build Docs |
20 |
| - runs-on: ubuntu-latest |
21 |
| - defaults: |
22 |
| - run: |
23 |
| - shell: bash |
24 |
| - steps: |
25 |
| - - uses: actions/checkout@v2 |
26 |
| - with: |
27 |
| - submodules: true |
28 |
| - - uses: actions/setup-python@v2 |
29 |
| - with: |
30 |
| - python-version: '3.x' |
31 |
| - - name: Build |
32 |
| - run: | |
33 |
| - sudo apt update |
34 |
| - sudo apt install python3-pip python3-setuptools |
35 |
| - # GitHub CI installs pip3 and setuptools outside the path. |
36 |
| - # Update the path to include them and run. |
37 |
| - PATH=/home/runner/.local/bin:$PATH pip3 install --user -r ./docs/requirements.txt |
38 |
| - cd ./docs && PATH=/home/runner/.local/bin:$PATH build-docs -l en |
39 |
| -
|
40 |
| - deploy-docs: |
41 |
| - name: Deploy Docs |
42 |
| - runs-on: ubuntu-latest |
43 |
| - defaults: |
44 |
| - run: |
45 |
| - shell: bash |
46 |
| - steps: |
47 |
| - - uses: actions/checkout@v2 |
48 |
| - with: |
49 |
| - submodules: true |
50 |
| - - uses: actions/setup-python@v2 |
51 |
| - with: |
52 |
| - python-version: '3.x' |
53 |
| - - name: Deploy Production |
54 |
| - env: |
55 |
| - DOCS_BUILD_DIR: "./docs/_build/" |
56 |
| - DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_DEPLOY_KEY }} |
57 |
| - DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_PROD_SERVER }} |
58 |
| - DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_PROD_SERVER_USER }} |
59 |
| - DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PATH }} |
60 |
| - DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_URL }} |
61 |
| - run: | |
62 |
| - sudo apt update |
63 |
| - sudo apt install python3-pip python3-setuptools |
64 |
| - PATH=/home/runner/.local/bin:$PATH pip3 install --user -r ./docs/requirements.txt |
65 |
| - PATH=/home/runner/.local/bin:$PATH source ./docs/utils.sh |
66 |
| - PATH=/home/runner/.local/bin:$PATH add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER |
67 |
| - PATH=/home/runner/.local/bin:$PATH export GIT_VER=$(git describe --always) |
68 |
| - cd ./docs && PATH=/home/runner/.local/bin:$PATH build-docs -l en |
69 |
| - PATH=/home/runner/.local/bin:$PATH deploy-docs |
70 |
| -
|
71 | 18 | deploy-preview-docs:
|
72 | 19 | name: Deploy Preview Docs
|
73 | 20 | runs-on: ubuntu-latest
|
|
92 | 39 | run: |
|
93 | 40 | sudo apt update
|
94 | 41 | sudo apt install python3-pip python3-setuptools
|
95 |
| - PATH=/home/runner/.local/bin:$PATH pip3 install --user -r ./docs/requirements.txt |
96 | 42 | PATH=/home/runner/.local/bin:$PATH source ./docs/utils.sh
|
97 | 43 | PATH=/home/runner/.local/bin:$PATH add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
|
98 | 44 | PATH=/home/runner/.local/bin:$PATH export GIT_VER=$(git describe --always)
|
| 45 | + PATH=/home/runner/.local/bin:$PATH pip3 install --user -r ./docs/requirements.txt |
99 | 46 | cd ./docs && PATH=/home/runner/.local/bin:$PATH build-docs -l en
|
100 | 47 | PATH=/home/runner/.local/bin:$PATH deploy-docs
|
0 commit comments