From a19a141611a09a305c2c583744744a9ae23a2fb7 Mon Sep 17 00:00:00 2001 From: blue Date: Sun, 20 Aug 2023 12:10:32 -0300 Subject: [PATCH] an attempt to actually deploy docs, try 4 --- .gitea/workflows/main.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 12e0713..e440ab8 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -11,20 +11,22 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 + - name: Make a build directory run: mkdir build + - name: Configure working-directory: ./build run: cmake .. -D BUILD_TESTS=True -D BUILD_DOC=True -D BUILD_DOXYGEN_AWESOME=True -D QT_VERSION_MAJOR=5 + - name: Build working-directory: ./build run: cmake --build . + - name: Run tests working-directory: ./build/test run: ./runUnitTests - - name: Compres Docs - working-directory: ./build/doc - run: tar -cvzf doc.tar.gz man xml html + - name: Copy docs via scp uses: appleboy/scp-action@v0.1.4 working-directory: ./build/doc @@ -32,17 +34,5 @@ jobs: host: ${{ secrets.DOMAIN_ROOT }} username: ${{ secrets.DEPLOY_USER_NAME }} key: ${{ secrets.DEPLOY_PRIVATE_KEY }} - source: doc.tar.gz + source: "html,xml,man" 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