chore: upload offline npm caches with a Gitea-compatible action
Frontend CI / unit (test, type-check, build) (push) Successful in 4m33s
Frontend CI / browser E2E (frontend + pinned backend) (push) Successful in 9m16s

The v4 artifact upload rejected the packed Linux caches.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-25 13:06:50 +03:30
co-authored by Cursor
parent a5a4d79a32
commit 5fb547597a
+19 -1
View File
@@ -151,9 +151,27 @@ jobs:
cp "$RUNNER_TEMP/offline-deps.tar.gz" "$RUNNER_TEMP/offline-deps.tar.gz.sha256" artifact/
- name: Upload archive
uses: actions/upload-artifact@v4
id: artifact
continue-on-error: true
uses: actions/upload-artifact@v3
with:
name: offline-deps
path: artifact/
retention-days: 7
if-no-files-found: error
- name: Upload generic package
if: steps.artifact.outcome != 'success'
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
curl --fail-with-body --silent --show-error \
-H "Authorization: token ${TOKEN}" \
--upload-file artifact/offline-deps.tar.gz \
"${GITHUB_API_URL}/packages/gold_land/generic/gold-land-offline-deps/${GITHUB_RUN_ID}/offline-deps.tar.gz"
curl --fail-with-body --silent --show-error \
-H "Authorization: token ${TOKEN}" \
--upload-file artifact/offline-deps.tar.gz.sha256 \
"${GITHUB_API_URL}/packages/gold_land/generic/gold-land-offline-deps/${GITHUB_RUN_ID}/offline-deps.tar.gz.sha256"
echo "generic package uploaded for run ${GITHUB_RUN_ID}"