Files
JIANT/.github/workflows/installer-pages.yml
T
Claude a659154658 [private-preview] Installer: the Bluetooth part checked after the install, written once more when missing; no JIANT through another loader
- After the install's restart the installer asks the FM-1 for its Bluetooth part: INFO's tag 'X' (firmware protocol
  1.3), else VEL op 4's length (protocol 1.2, V10.6z7 .. V10.7.21), else not checked. Missing: Install once more (from
  JIANT its own loader writes the part), asked again; still missing: 'btmissing' with what to do. COPY REPORT has a
  "bluetooth part:" line.
- Update mode with a loader that is not JIANT's (ota-FM-1_900): Install does not resume JIANT through it
  ('foreignLoader': finish Return to official with Resume ticked, then Install); Return to official without the box
  says 'stockNeedResume' instead of sending to Install. tip_stockNeedBackup reworded (es/en/ja).
- tools/patch_installer_downloads.py also brings the published installers fm1diag.js's flows and report and the
  texts' block from this checkout; tests/patch_installer_test.py runs it on pages built from this checkout and from
  e6bf12cd / 1d13ffc0, as built and as the previous tool patched them (idempotent, node --check); the workflow runs
  the test before patching.
- web/test_web.mjs: the simulated FM-1 tells its Bluetooth part (tag or VEL), the new flows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-12 22:29:38 +00:00

63 lines
2.3 KiB
YAML

name: Publish installer pages
on:
push:
branches: [main]
paths:
- .github/workflows/installer-pages.yml
- tools/patch_installer_downloads.py
workflow_dispatch:
permissions:
contents: read
actions: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Download current published site
id: site
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: github-pages
run-id: 43319686454
github-token: ${{ github.token }}
path: build/released
- name: Published site to start from (the artifact; the live site when it expired or is older)
# The Pages artifact of the pinned run expires; the live site does not. tools/fetch_live_site.py leaves at
# build/released/artifact.tar the downloaded artifact, or the live site fetched file by file and checked
# (site-manifest.json, SHA256SUMS, versions.json); it stops the run rather than start from a partial site.
run: |
[ "${{ steps.site.outcome }}" = success ] || rm -rf build/released
python3 tools/fetch_live_site.py restore --artifact build/released/artifact.tar
- name: The patch on installer pages as make_site.py builds them (tests/patch_installer_test.py)
run: python3 tests/patch_installer_test.py
- name: Update only the two installer pages
run: |
mkdir -p build/pages
tar -xf build/released/artifact.tar -C build/pages
python3 tools/patch_installer_downloads.py build/pages
- name: Site manifest (every file with its SHA-256, for the next publish to recover the site exactly)
run: python3 tools/fetch_live_site.py manifest build/pages
- uses: actions/upload-pages-artifact@v3
with:
path: build/pages
retention-days: 90 # (the default is 1 day: the next publish starts from this artifact)
deploy:
needs: build
runs-on: ubuntu-24.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4