From b989441a6144eaec17e290912d8f02547bb60947 Mon Sep 17 00:00:00 2001 From: Sean Hammond Date: Thu, 16 Oct 2025 08:15:34 +0100 Subject: [PATCH] Don't use upload-pages-artifact (#3502) --- .github/workflows/github_pages.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github_pages.yml b/.github/workflows/github_pages.yml index 9c279ab1..86c23fa3 100644 --- a/.github/workflows/github_pages.yml +++ b/.github/workflows/github_pages.yml @@ -85,10 +85,28 @@ jobs: chmod -c -R +rX "${{ inputs.output-path }}" | while read line; do echo "::warning title=Invalid file permissions automatically fixed::$line" done + - name: Archive artifact + shell: sh + run: | + echo "::group::Archive artifact" + tar \ + --dereference \ + --hard-dereference \ + --directory "$OUTPUT_PATH" \ + -cvf "$RUNNER_TEMP/artifact.tar" \ + --exclude=.git \ + --exclude=.github \ + . + echo "::endgroup::" + env: + OUTPUT_PATH: ${{ inputs.output-path }} - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-artifact@v4 with: - path: ${{ inputs.output-path }} + name: github-pages + path: ${{ runner.temp }}/artifact.tar + retention-days: 1 + if-no-files-found: error deploy: concurrency: group: "pages"