From bd6038556ac8b558653aa25d2f3befc2f07ba41b Mon Sep 17 00:00:00 2001 From: Alex Axthelm Date: Thu, 12 Dec 2024 17:50:45 +0100 Subject: [PATCH] Don't store full dir structure in tarfile --- .github/workflows/gh-pages.yml | 9 +++++++++ .github/workflows/test.yml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 00ac311..2aee191 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -27,6 +27,14 @@ jobs: merge-multiple: true path: extracted_builds + - name: extract tarfiles + run: | + for tarfile in *.tar.gz + do + tar -xvzf "$tarfile" + done + + - run: ls -laR extracted_builds - name: Add nojekyll file @@ -52,3 +60,4 @@ jobs: preview-branch: gh-pages umbrella-dir: pr-preview action: auto + dry-run: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 146c1f2..68e1869 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -150,7 +150,7 @@ jobs: CONFIG_NAME: ${{ inputs.config-name }} DASHBOARD_OUTPUT_DIR: ${{ steps.prepare.outputs.dashboard-output-dir }} run: | - tar -cvf "$CONFIG_NAME.tar.gz" "$DASHBOARD_OUTPUT_DIR" + tar -cv -f "$CONFIG_NAME.tar.gz" -C "$DASHBOARD_OUTPUT_DIR" . - name: Upload built dashboard as artifact