From 63992ebc578e2c6e16738cc8d8ebf68dc05a820a Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Fri, 26 Nov 2021 12:49:03 +0100 Subject: [PATCH] Speedup artifact upload by local packing Signed-off-by: Christian Wolf --- .github/workflows/sphinxbuild.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sphinxbuild.yml b/.github/workflows/sphinxbuild.yml index 54c149e9f..18c185396 100644 --- a/.github/workflows/sphinxbuild.yml +++ b/.github/workflows/sphinxbuild.yml @@ -17,11 +17,14 @@ jobs: docs-folder: "user_manual/" pre-build-command: pip install -r requirements.txt build-command: make html + - name: Pack the results in local tar file + shell: bash + run: tar czf /tmp/documentation.tar.gz -C user_manual/_build/html . - name: Upload static documentation uses: actions/upload-artifact@v2.2.4 with: name: User manual.zip - path: "user_manual/_build/html" + path: "/tmp/documentation.tar.gz" user_manual-en: runs-on: ubuntu-latest steps: @@ -40,11 +43,14 @@ jobs: docs-folder: "developer_manual/" pre-build-command: pip install -r requirements.txt build-command: make html + - name: Pack the results in local tar file + shell: bash + run: tar czf /tmp/documentation.tar.gz -C developer_manual/_build/html/com . - name: Upload static documentation uses: actions/upload-artifact@v2.2.4 with: name: Developer manual.zip - path: "developer_manual/_build/html/com" + path: "/tmp/documentation.tar.gz" admin_manual: runs-on: ubuntu-latest steps: @@ -54,8 +60,11 @@ jobs: docs-folder: "admin_manual/" pre-build-command: pip install -r requirements.txt build-command: make html + - name: Pack the results in local tar file + shell: bash + run: tar czf /tmp/documentation.tar.gz -C admin_manual/_build/html/com . - name: Upload static documentation uses: actions/upload-artifact@v2.2.4 with: name: Administration manual.zip - path: "admin_manual/_build/html/com" + path: "/tmp/documentation.tar.gz"