ci: drop actions/upload-artifact@v4 (incompatible with Gitea runner)
upload-artifact@v4 needs GitHub's artifact backend, which the Gitea act_runner doesn't implement — it failed the build job with exit 1 even though build:embedded + smoke-check passed. The publish job rebuilds from source, so the artifact was only a convenience. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
b1fed78283
commit
39377fb6e1
+9
-10
@@ -47,8 +47,8 @@ jobs:
|
||||
- name: Build embedded
|
||||
# build:embedded writes to the repo-root dist/ (vite default outDir).
|
||||
# Stage it into embedded/web/dist — the publish template's "files" entry
|
||||
# — so the smoke-check, artifact upload, and npm publish all see the
|
||||
# bundle. (embedded/web/dist is gitignored, hence the explicit copy.)
|
||||
# — so the smoke-check and npm publish both see the bundle.
|
||||
# (embedded/web/dist is gitignored, hence the explicit copy.)
|
||||
run: |
|
||||
pnpm run build:embedded
|
||||
rm -rf embedded/web/dist
|
||||
@@ -65,12 +65,11 @@ jobs:
|
||||
ls embedded/web/dist >> "$GITHUB_STEP_SUMMARY"
|
||||
echo '```' >> "$GITHUB_STEP_SUMMARY"
|
||||
|
||||
- name: Upload dist artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: element-call-embedded-dist
|
||||
path: embedded/web/dist
|
||||
retention-days: 7
|
||||
# NOTE: no actions/upload-artifact step — v4 requires GitHub's artifact
|
||||
# backend, which the Gitea act_runner does not implement (it fails with
|
||||
# exit 1). The publish job rebuilds from source anyway, so the artifact
|
||||
# was only a convenience; re-add a Gitea-compatible action here if per-run
|
||||
# dist downloads are ever needed.
|
||||
|
||||
publish:
|
||||
name: Publish to Gitea npm registry
|
||||
@@ -98,8 +97,8 @@ jobs:
|
||||
- name: Build embedded
|
||||
# build:embedded writes to the repo-root dist/ (vite default outDir).
|
||||
# Stage it into embedded/web/dist — the publish template's "files" entry
|
||||
# — so the smoke-check, artifact upload, and npm publish all see the
|
||||
# bundle. (embedded/web/dist is gitignored, hence the explicit copy.)
|
||||
# — so the smoke-check and npm publish both see the bundle.
|
||||
# (embedded/web/dist is gitignored, hence the explicit copy.)
|
||||
run: |
|
||||
pnpm run build:embedded
|
||||
rm -rf embedded/web/dist
|
||||
|
||||
Reference in New Issue
Block a user