File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 runs-on : ubuntu-latest
1313
1414 steps :
15- - name : Create SSH key
16- run : |
17- mkdir -p ~/.ssh/
18- ssh-keyscan -H ${{ secrets.DEPLOY_DOCS_HOST }} >> ~/.ssh/known_hosts
19- shell : bash
2015 - name : Extract branch name
2116 shell : bash
2217 run : echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
@@ -38,11 +33,13 @@ jobs:
3833 run : python setup.py test -p docs
3934 - name : Build docs
4035 run : python setup.py build_docs
41- - name : Move to docs folder
42- run : cd ./build/sphinx/html
4336 - name : Deploy development docs
4437 if : steps.extract_branch.outputs.branch == 'develop'
45- run : sshpass -p "${{ secrets.DEPLOY_DOCS_DEVELOP_PASSWORD }}" scp -o 'StrictHostKeyChecking no' -P "${{ secrets.DEPLOY_DOCS_PORT }}" -r ./* "${{ secrets.DEPLOY_DOCS_DEVELOP_USER }}@${{ secrets.DEPLOY_DOCS_HOST }}:${{ secrets.DEPLOY_DOCS_DEVELOP_PATH }}";
38+ run : |
39+ cd ./build/sphinx/html
40+ sshpass -p "${{ secrets.DEPLOY_DOCS_DEVELOP_PASSWORD }}" scp -o 'StrictHostKeyChecking no' -P "${{ secrets.DEPLOY_DOCS_PORT }}" -r ./* "${{ secrets.DEPLOY_DOCS_DEVELOP_USER }}@${{ secrets.DEPLOY_DOCS_HOST }}:${{ secrets.DEPLOY_DOCS_DEVELOP_PATH }}";
4641 - name : Deploy release docs
4742 if : steps.extract_branch.outputs.branch == 'master'
48- run : sshpass -p "${{ secrets.DEPLOY_DOCS_PASSWORD }}" scp -o 'StrictHostKeyChecking no' -P "${{ secrets.DEPLOY_DOCS_PORT }}" -r ./* "${{ secrets.DEPLOY_DOCS_USER }}@${{ secrets.DEPLOY_DOCS_HOST }}:${{ secrets.DEPLOY_DOCS_PATH }}";
43+ run : |
44+ cd ./build/sphinx/html
45+ sshpass -p "${{ secrets.DEPLOY_DOCS_PASSWORD }}" scp -o 'StrictHostKeyChecking no' -P "${{ secrets.DEPLOY_DOCS_PORT }}" -r ./* "${{ secrets.DEPLOY_DOCS_USER }}@${{ secrets.DEPLOY_DOCS_HOST }}:${{ secrets.DEPLOY_DOCS_PATH }}";
You can’t perform that action at this time.
0 commit comments