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
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/release-desktop.yml +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -281,6 +281,15 @@ jobs: |
281 | 281 | name: js-bundle |
282 | 282 | path: apps |
283 | 283 |
|
| 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 | +
|
284 | 293 | - name: Install cargo-xwin |
285 | 294 | if: inputs.platform == 'win' && steps.resource_monitor_cache.outputs.cache-hit != 'true' |
286 | 295 | uses: taiki-e/install-action@cfdb7ed4ccc7c7dce37759eae89dc5674b469b39 # v2.90.3 |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/release.yml +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -601,6 +601,15 @@ jobs: |
601 | 601 | T3CODE_TELEMETRY_CHANNEL: ${{ github.repository == 'pingdotgg/t3code' && needs.preflight.outputs.release_channel || 'dev' }} |
602 | 602 | run: vp run ${{ steps.bundle_build.outputs.script }} |
603 | 603 |
|
| 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 | +
|
604 | 613 | # Two paths under apps/ so the artifact root is apps/; consumers download |
605 | 614 | # into `apps` to restore both at their original locations. |
606 | 615 | - name: Upload JS bundle |
|
Collapse file
Copy file name to clipboardExpand all lines: scripts/smoke-cli-archive.ts +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -101,6 +101,7 @@ const smokeCliArchive = Effect.fn("smokeCliArchive")(function* (input: { |
101 | 101 | for (const required of [ |
102 | 102 | executable, |
103 | 103 | path.join(contentDir, "client/index.html"), |
| 104 | + path.join(contentDir, "client/.vite/manifest.json"), |
104 | 105 | ...(platform === "linux" ? [bundledLibatomic, `${bundledLibatomic}.LICENSE`] : []), |
105 | 106 | ]) { |
106 | 107 | if (!(yield* fs.exists(required))) { |
|