an attempt to actually deploy docs, try 4
Some checks failed
Main LMDBAL workfow / Archlinux (push) Failing after 32s
Some checks failed
Main LMDBAL workfow / Archlinux (push) Failing after 32s
This commit is contained in:
parent
af07ca2795
commit
a19a141611
@ -11,20 +11,22 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Make a build directory
|
- name: Make a build directory
|
||||||
run: mkdir build
|
run: mkdir build
|
||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: cmake .. -D BUILD_TESTS=True -D BUILD_DOC=True -D BUILD_DOXYGEN_AWESOME=True -D QT_VERSION_MAJOR=5
|
run: cmake .. -D BUILD_TESTS=True -D BUILD_DOC=True -D BUILD_DOXYGEN_AWESOME=True -D QT_VERSION_MAJOR=5
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: cmake --build .
|
run: cmake --build .
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: ./build/test
|
working-directory: ./build/test
|
||||||
run: ./runUnitTests
|
run: ./runUnitTests
|
||||||
- name: Compres Docs
|
|
||||||
working-directory: ./build/doc
|
|
||||||
run: tar -cvzf doc.tar.gz man xml html
|
|
||||||
- name: Copy docs via scp
|
- name: Copy docs via scp
|
||||||
uses: appleboy/scp-action@v0.1.4
|
uses: appleboy/scp-action@v0.1.4
|
||||||
working-directory: ./build/doc
|
working-directory: ./build/doc
|
||||||
@ -32,17 +34,5 @@ jobs:
|
|||||||
host: ${{ secrets.DOMAIN_ROOT }}
|
host: ${{ secrets.DOMAIN_ROOT }}
|
||||||
username: ${{ secrets.DEPLOY_USER_NAME }}
|
username: ${{ secrets.DEPLOY_USER_NAME }}
|
||||||
key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
||||||
source: doc.tar.gz
|
source: "html,xml,man"
|
||||||
target: ${{ secrets.LMDBAL_DOCS_DEPLOY_PATH }}
|
target: ${{ secrets.LMDBAL_DOCS_DEPLOY_PATH }}
|
||||||
- name: Unpack the archive
|
|
||||||
uses: appleboy/ssh-action@v1.0.0
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.DOMAIN_ROOT }}
|
|
||||||
username: ${{ secrets.DEPLOY_USER_NAME }}
|
|
||||||
key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
|
|
||||||
script_stop: true
|
|
||||||
script: |
|
|
||||||
cd ${{ secrets.LMDBAL_DOCS_DEPLOY_PATH }}
|
|
||||||
pwd
|
|
||||||
tar -xvzf doc.tar.gz
|
|
||||||
rm doc.tar.gz
|
|
||||||
|
Loading…
Reference in New Issue
Block a user