chore(release): move the domestic mirror to AtomGit (#516)
Domestic downloads and the project mirror now use AtomGit at TNTcraftHIM/Piik. The publisher uploads the original GitHub CI artifacts, verifies anonymous downloads against their SHA-256 digests, and promotes the complete release to latest. The website offers direct Android APK downloads and updates its desktop architecture links, project link and current documentation. The AtomGit workflow replaces the Gitee publisher. Published App and Server versions remain v2.5.2; their built-in update-source changes are prepared separately on the maintenance and 3.0 branches. Validation: - Mirrored and anonymously verified all 10 original v2.5.2 assets (330,802,847 bytes), including the APK. - Full frontend check and website build passed; publisher failure, resume and credential-redaction checks passed. - Actual release plan reports publish:false, including the retired workflow deletion and mobile documentation changes. - Reviewed the bilingual download UI and verified the six App download targets and architecture switches.
This commit is contained in:
1 parent
72ca6f2bc9
commit
4a4703622a
21 files changed
+225
-227
No files matched your search
@@ -0,0 +1,83 @@
|
||||
name: AtomGit mirror
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [CI]
|
||||
types: [completed]
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
run_id:
|
||||
description: Original CI run that published the current GitHub release
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
|
||||
concurrency:
|
||||
group: atomgit-mirror
|
||||
cancel-in-progress: false
|
||||
queue: max
|
||||
|
||||
jobs:
|
||||
mirror:
|
||||
if: >-
|
||||
github.repository == 'TNTcraftHIM/Piik' && github.ref == 'refs/heads/main' &&
|
||||
(github.event_name == 'workflow_dispatch' ||
|
||||
(github.event.workflow_run.event == 'push' &&
|
||||
github.event.workflow_run.head_branch == 'main' &&
|
||||
github.event.workflow_run.conclusion == 'success'))
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
# Execute trusted main tooling; upstream artifacts are data, never code.
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: npm
|
||||
- run: npm ci --ignore-scripts
|
||||
- name: Resolve the published source
|
||||
id: source
|
||||
run: node scripts/release-mirror-source.mjs "$PIIK_SOURCE_RUN_ID"
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
PIIK_SOURCE_RUN_ID: ${{ inputs.run_id || github.event.workflow_run.id }}
|
||||
- name: Download original Server artifacts
|
||||
if: steps.source.outputs.mirror == 'true'
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ steps.source.outputs.run_id }}
|
||||
pattern: piik-server*-${{ steps.source.outputs.revision }}
|
||||
path: ${{ runner.temp }}/mirror-release
|
||||
merge-multiple: true
|
||||
- name: Download original App artifacts
|
||||
if: steps.source.outputs.mirror == 'true'
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
run-id: ${{ steps.source.outputs.run_id }}
|
||||
pattern: piik-app-*-${{ steps.source.outputs.revision }}
|
||||
path: ${{ runner.temp }}/mirror-release
|
||||
merge-multiple: true
|
||||
- name: Mirror and verify original packages
|
||||
if: steps.source.outputs.mirror == 'true'
|
||||
run: >-
|
||||
node scripts/mirror-release.mjs
|
||||
"$RUNNER_TEMP/mirror-release" "$PIIK_RELEASE_VERSION" "$PIIK_RELEASE_REVISION"
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
ATOMGIT_TOKEN: ${{ secrets.ATOMGIT_TOKEN }}
|
||||
PIIK_RELEASE_VERSION: ${{ steps.source.outputs.version }}
|
||||
PIIK_RELEASE_REVISION: ${{ steps.source.outputs.revision }}
|
||||
- name: Explain recovery
|
||||
if: failure() && steps.source.outputs.mirror == 'true'
|
||||
run: |
|
||||
printf 'Mirror failed; GitHub publication and Website are independent. Retry this workflow with original CI run %s. If artifacts expired, recover the retained original build output; do not rebuild this version. See docs/operations/github.md.\n' "$PIIK_SOURCE_RUN_ID" >> "$GITHUB_STEP_SUMMARY"
|
||||
env:
|
||||
PIIK_SOURCE_RUN_ID: ${{ steps.source.outputs.run_id }}
|
||||
Reference in new issue
Block a user