Recover releases from independently retried CI packaging (#15)
Gitea CI / Check code and tests (push) Failing after 11m29s
Gitea CI / Build Android APK (push) Skipped
Gitea CI / Build Windows x64 app (push) Skipped
Gitea CI / Audit and package Windows x64 (push) Skipped
Gitea CI / Assemble and validate CI artifacts (push) Skipped
Gitea CI / Gitea CI passed (push) Failing after 2s
Gitea CI / Check code and tests (push) Failing after 11m29s
Gitea CI / Build Android APK (push) Skipped
Gitea CI / Build Windows x64 app (push) Skipped
Gitea CI / Audit and package Windows x64 (push) Skipped
Gitea CI / Assemble and validate CI artifacts (push) Skipped
Gitea CI / Gitea CI passed (push) Failing after 2s
This commit was merged in pull request #15.
This commit is contained in:
1 parent
06f1c26681
commit
8785eaf095
7 files changed
+185
-34
No files matched your search
@@ -77,7 +77,11 @@ Android and Windows independently download their platform artifacts from the
|
||||
selected CI run and immediately upload them to the draft. These jobs run in
|
||||
parallel. The final job accepts only the compact metadata artifact from that same
|
||||
CI run. Complete binary archives cannot substitute for platform packages or
|
||||
metadata. Missing, expired or duplicate required artifacts block preparation
|
||||
metadata. Gitea can retain old artifact API rows after a job rerun despite overwrite.
|
||||
Selection requires the exact CI run and source commit, and exactly one artifact
|
||||
created within its current successful producer job's execution interval. Jobs
|
||||
preserved during a partial rerun retain their original intervals and artifacts.
|
||||
Missing, expired or ambiguous artifacts in that interval block preparation
|
||||
before any draft is created. Platform uploads check attachment presence without
|
||||
reading back their bytes. Before publication, every attachment is read back once
|
||||
and verified against trusted SHA256 checksums; the full update package also
|
||||
@@ -94,6 +98,11 @@ operator attention. Published Releases are never overwritten. The built-in
|
||||
GITEA_TOKEN handles release writes and Actions artifact reads; no separate
|
||||
release-write PAT is required. Do not commit credentials or keystores.
|
||||
|
||||
Release tools are checked out at the workflow's exact commit; tagged application
|
||||
source is checked out separately in `.release-source`. A manual dispatch on main
|
||||
can therefore apply a reviewed release-tool fix to an existing tag without moving
|
||||
that tag or substituting another application's version or CI artifacts.
|
||||
|
||||
Full-pipeline CI produces Actions artifacts without creating Releases. If a tag is pushed
|
||||
before main CI succeeds, release preparation fails without creating a draft; retry
|
||||
the Release workflow once CI has finished. This design overlaps platform uploads,
|
||||
|
||||
@@ -24,6 +24,7 @@ env:
|
||||
GIT_CONFIG_VALUE_0: 'false'
|
||||
GIT_CONFIG_KEY_1: core.eol
|
||||
GIT_CONFIG_VALUE_1: lf
|
||||
RELEASE_PUBSPEC: .release-source/pubspec.yaml
|
||||
RELEASE_TAG: ${{ gitea.event.inputs.tag || gitea.ref_name }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
jobs:
|
||||
@@ -40,16 +41,23 @@ jobs:
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
steps:
|
||||
- name: Check out release tag
|
||||
- name: Check out pinned release tools
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
ref: ${{ gitea.sha }}
|
||||
persist-credentials: false
|
||||
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
|
||||
- name: Check out release source separately
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
ref: ${{ gitea.event.inputs.tag || gitea.ref_name }}
|
||||
path: .release-source
|
||||
persist-credentials: false
|
||||
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
|
||||
- name: Select successful CI and prepare draft
|
||||
id: draft
|
||||
run: |
|
||||
$env:GITEA_SHA = git rev-parse HEAD
|
||||
$env:GITEA_SHA = git -C .release-source rev-parse HEAD
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Release source resolution failed.' }
|
||||
python tool/gitea/stage-release.py prepare-ci
|
||||
if ($LASTEXITCODE -ne 0) { throw 'CI selection or draft preparation failed.' }
|
||||
@@ -65,10 +73,17 @@ jobs:
|
||||
CI_RUN_ID: ${{ needs.prepare.outputs.ci-run-id }}
|
||||
CI_ARTIFACT_ID: ${{ needs.prepare.outputs.android-artifact-id }}
|
||||
steps:
|
||||
- name: Check out release commit
|
||||
- name: Check out pinned release tools
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
ref: ${{ needs.prepare.outputs.sha }}
|
||||
ref: ${{ gitea.sha }}
|
||||
persist-credentials: false
|
||||
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
|
||||
- name: Check out release source separately
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
ref: ${{ gitea.event.inputs.tag || gitea.ref_name }}
|
||||
path: .release-source
|
||||
persist-credentials: false
|
||||
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
|
||||
- name: Download Android CI artifact
|
||||
@@ -91,10 +106,17 @@ jobs:
|
||||
CI_RUN_ID: ${{ needs.prepare.outputs.ci-run-id }}
|
||||
CI_ARTIFACT_ID: ${{ needs.prepare.outputs.windows-artifact-id }}
|
||||
steps:
|
||||
- name: Check out release commit
|
||||
- name: Check out pinned release tools
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
ref: ${{ needs.prepare.outputs.sha }}
|
||||
ref: ${{ gitea.sha }}
|
||||
persist-credentials: false
|
||||
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
|
||||
- name: Check out release source separately
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
ref: ${{ gitea.event.inputs.tag || gitea.ref_name }}
|
||||
path: .release-source
|
||||
persist-credentials: false
|
||||
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
|
||||
- name: Download Windows CI artifact
|
||||
@@ -117,10 +139,17 @@ jobs:
|
||||
CI_RUN_ID: ${{ needs.prepare.outputs.ci-run-id }}
|
||||
CI_ARTIFACT_ID: ${{ needs.prepare.outputs.artifact-id }}
|
||||
steps:
|
||||
- name: Check out release commit
|
||||
- name: Check out pinned release tools
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
ref: ${{ needs.prepare.outputs.sha }}
|
||||
ref: ${{ gitea.sha }}
|
||||
persist-credentials: false
|
||||
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
|
||||
- name: Check out release source separately
|
||||
uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
ref: ${{ gitea.event.inputs.tag || gitea.ref_name }}
|
||||
path: .release-source
|
||||
persist-credentials: false
|
||||
github-server-url: ${{ env.CUTDEX_GITEA_INTERNAL_URL }}
|
||||
- name: Download release verification metadata
|
||||
|
||||
Reference in new issue
Block a user