File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 42
42
with :
43
43
name : docs
44
44
path : docs
45
+
46
+ deploy-prod-docs :
47
+ name : Deploy Documentation on Production
48
+ runs-on : ubuntu-22.04
49
+ defaults :
50
+ run :
51
+ shell : bash
52
+ steps :
53
+ - uses : actions/checkout@v3
54
+ with :
55
+ submodules : true
56
+ - uses : actions/setup-python@v4
57
+ with :
58
+ python-version : ' 3.10'
59
+ - name : Deploy Documentation
60
+ env :
61
+ # Deploy to production server
62
+ # DOCS_BUILD_DIR: "./docs/_build/"
63
+ DOCS_DEPLOY_PRIVATEKEY : ${{ secrets.DOCS_PROD_PRIVATEKEY }}
64
+ DOCS_DEPLOY_PATH : ${{ secrets.DOCS_PROD_PATH }}
65
+ DOCS_DEPLOY_SERVER : ${{ secrets.DOCS_SERVER }}
66
+ DOCS_DEPLOY_SERVER_USER : ${{ secrets.DOCS_PROD_USER }}
67
+ DOCS_DEPLOY_URL_BASE : ${{ secrets.DOCS_PROD_URL_BASE }}
68
+ # Deploy to preview server
69
+ run : |
70
+ sudo apt update
71
+ sudo apt install python3-pip python3-setuptools
72
+ source ./docs/utils.sh
73
+ add_doc_server_ssh_keys $DOCS_DEPLOY_PRIVATEKEY $DOCS_DEPLOY_SERVER $DOCS_DEPLOY_SERVER_USER
74
+ export GIT_VER=$(git describe --always)
75
+ echo "PIP install requirements..."
76
+ pip3 install --user -r ./docs/requirements.txt
77
+ echo "Building the Docs..."
78
+ cd ./docs && build-docs -l en
79
+ echo "Deploy the Docs..."
80
+ export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/
81
+ cd $GITHUB_WORKSPACE/docs
82
+ deploy-docs
83
+
You can’t perform that action at this time.
0 commit comments