From a5f492d1158ba219803a45bad858b0cb4b4fdc6d Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Mon, 27 Jul 2026 15:26:58 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20upload=20artifacts=20with=20v3=20?= =?UTF-8?q?=E2=80=94=20v4=20cannot=20talk=20to=20Gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build 18745 produced a working image (8.00 GiB compressed to 972 MiB in 44 seconds, checksum recorded) and then failed on the very last step: GHESNotSupportedError: @actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES. Gitea's artifact backend identifies as GHES, and the v2 artifact client behind upload-artifact@v4 refuses GHES outright rather than falling back. I chose v4 on the assumption Gitea 1.25 supported it; it does not. v3 works. Dropping compression-level with it — v3 has no such input, and the image is already zstd so it would have been a no-op anyway. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01XWRjNJMistCy6ngXH5aJLS --- .gitea/workflows/build-image.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-image.yaml b/.gitea/workflows/build-image.yaml index 5ad4be2..9046e72 100644 --- a/.gitea/workflows/build-image.yaml +++ b/.gitea/workflows/build-image.yaml @@ -114,7 +114,11 @@ jobs: if: always() run: cat output/*.sha256 2>/dev/null || echo "no images produced" - - uses: actions/upload-artifact@v4 + # v3, not v4. Gitea's artifact backend identifies as GHES, and + # @actions/artifact v2 (which backs upload-artifact@v4) refuses to talk to + # GHES outright — "GHESNotSupportedError". v3 works. The image is already + # zstd, so v3 storing it uncompressed costs nothing. + - uses: actions/upload-artifact@v3 if: always() with: name: fedora-lenovo-yoga-c630 @@ -122,7 +126,6 @@ jobs: output/*.img.zst output/*.sha256 retention-days: 14 - compression-level: 0 # already zstd if-no-files-found: warn - name: Attach to release