From bbd68eca1f93f158f22933207dfb5dec826d1e7d Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Fri, 24 Apr 2026 19:12:34 +0200 Subject: [PATCH] ci(deploy): pin upload/download-artifact to v3 for Gitea Actions actions/upload-artifact@v4 and download-artifact@v4 use the @actions/artifact v2+ client, which targets a github.com-only backend and fails on Gitea / Forgejo / GHES with: GHESNotSupportedError: @actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES. Pin both to v3, which uses the older artifact protocol that Gitea Actions implements. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8823710..074ae21 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -61,8 +61,11 @@ jobs: exit 1 fi + # Pin to v3 — Gitea Actions implements the v3 artifact protocol. + # upload/download-artifact@v4 talk to a github.com-only backend and + # fail with GHESNotSupportedError on Gitea / Forgejo / GHES. - name: Upload dist artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: dist path: dist/ @@ -75,7 +78,7 @@ jobs: steps: - name: Download dist artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: dist path: dist/