GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(release): preserve the web asset manifest (#42806) · patroza/t3code@25bbfb3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • release-desktop.yml
    • release.yml
  • scripts
    • smoke-cli-archive.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/release-desktop.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/release-desktop.yml
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,15 @@ jobs:
281281
name: js-bundle
282282
path: apps
283283

284+
- name: Restore web asset manifest
285+
shell: bash
286+
run: |
287+
client=apps/server/dist/client
288+
if [[ -f "$client/vite-manifest.release.json" ]]; then
289+
mkdir -p "$client/.vite"
290+
mv "$client/vite-manifest.release.json" "$client/.vite/manifest.json"
291+
fi
292+
284293
- name: Install cargo-xwin
285294
if: inputs.platform == 'win' && steps.resource_monitor_cache.outputs.cache-hit != 'true'
286295
uses: taiki-e/install-action@cfdb7ed4ccc7c7dce37759eae89dc5674b469b39 # v2.90.3
Collapse file

‎.github/workflows/release.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,15 @@ jobs:
601601
T3CODE_TELEMETRY_CHANNEL: ${{ github.repository == 'pingdotgg/t3code' && needs.preflight.outputs.release_channel || 'dev' }}
602602
run: vp run ${{ steps.bundle_build.outputs.script }}
603603

604+
# Upload only the expected hidden file, without opting all build outputs into hidden uploads.
605+
- name: Stage web asset manifest
606+
shell: bash
607+
run: |
608+
manifest=apps/server/dist/client/.vite/manifest.json
609+
if [[ -f "$manifest" ]]; then
610+
cp "$manifest" apps/server/dist/client/vite-manifest.release.json
611+
fi
612+
604613
# Two paths under apps/ so the artifact root is apps/; consumers download
605614
# into `apps` to restore both at their original locations.
606615
- name: Upload JS bundle
Collapse file

‎scripts/smoke-cli-archive.ts‎

Copy file name to clipboardExpand all lines: scripts/smoke-cli-archive.ts
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const smokeCliArchive = Effect.fn("smokeCliArchive")(function* (input: {
101101
for (const required of [
102102
executable,
103103
path.join(contentDir, "client/index.html"),
104+
path.join(contentDir, "client/.vite/manifest.json"),
104105
...(platform === "linux" ? [bundledLibatomic, `${bundledLibatomic}.LICENSE`] : []),
105106
]) {
106107
if (!(yield* fs.exists(required))) {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.