mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
[private-preview] Publishing workflows: start from the live site when the artifact is gone; 90-day artifacts; site manifest
split-beta, emulator-beta, public-release and installer-pages: the download of the pinned run's github-pages artifact may fail (continue-on-error); the next step (tools/fetch_live_site.py restore) leaves build/released/artifact.tar as the downloaded artifact or, when it expired or is older than the live site, the live site fetched and checked. The steps after it are unchanged. Every deploy (those four, emulator, private-preview, usb-input-release) now writes site-manifest.json (every file, size, SHA-256) and keeps its Pages artifact 90 days instead of 1. Pushing this runs "Publish installer pages" (its workflow file changed): it republishes the live site as it is, plus site-manifest.json. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
7 files changed
+57
No files matched your search
@@ -44,12 +44,21 @@ jobs:
|
||||
path: build/candidate
|
||||
persist-credentials: false
|
||||
- name: Frozen published site
|
||||
id: site
|
||||
continue-on-error: true
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: github-pages
|
||||
run-id: 42891985548
|
||||
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: Exact tested firmware
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -124,9 +133,12 @@ jobs:
|
||||
with:
|
||||
name: voice-split-beta
|
||||
path: build/candidate/build/felucca.fwsc
|
||||
- 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
|
||||
|
||||
Reference in new issue
Block a user