Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/forever-marketplace-recovery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Forever marketplace recovery

on:
workflow_dispatch:
inputs:
tag:
description: Existing Forever alpha prerelease tag (never moved or rebuilt)
required: true
type: string
provider:
description: Select only destinations that have not accepted this file
required: true
type: choice
default: all
options: [all, curseforge, wago]
publish:
description: Upload after GET-only preflight (leave false for diagnosis)
required: true
type: boolean
default: false

permissions:
contents: read

concurrency:
group: forever-refs/tags/${{ inputs.tag }}
cancel-in-progress: false

jobs:
recover:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
persist-credentials: false
- name: Validate alpha tag format
env:
TAG: ${{ inputs.tag }}
run: |
python3 - <<'PY'
import os, re
if not re.fullmatch(r"forever-v\d+\.\d+\.\d+-alpha\.\d+", os.environ["TAG"]):
raise SystemExit("Only an existing Forever alpha tag is allowed")
PY
- name: Download existing prerelease assets without rebuilding
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ inputs.tag }}
run: |
gh release view "$TAG" --repo "$GITHUB_REPOSITORY" --json isDraft,isPrerelease > release-state.json
python3 - <<'PY'
import json
state = json.load(open("release-state.json"))
if state["isDraft"] or not state["isPrerelease"]:
raise SystemExit("Recovery requires an already published prerelease")
PY
gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir dist \
--pattern 'KwikTip_Forever-*.zip' --pattern release.json --pattern SHA256SUMS \
--pattern source-evidence.json --pattern coverage.json --pattern release-notes.md
- name: GET-only provider metadata preflight
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
TAG: ${{ inputs.tag }}
PROVIDER: ${{ inputs.provider }}
run: python3 -B tools/forever_marketplaces.py dist --tag "$TAG" --provider "$PROVIDER" --preflight
- name: Upload exact existing bytes to selected destinations
if: inputs.publish
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
TAG: ${{ inputs.tag }}
PROVIDER: ${{ inputs.provider }}
run: python3 -B tools/forever_marketplaces.py dist --tag "$TAG" --provider "$PROVIDER" --publish
30 changes: 23 additions & 7 deletions docs/FOREVER_DISTRIBUTION.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# Forever distribution through GitHub Actions

Status (2026-10-31): implemented for review with offline validation. Review-branch
and GitHub build results are recorded in the PR/checks; no publishing tag is
approved. No addon release has been published. The installed local addon
Status (2026-10-31): PR #3 merged as `3ea8afa`; the approved immutable tag
`forever-v0.1.0-alpha.1` targets that merge. Its build passed and the
[GitHub prerelease](https://github.com/postblink/KwikTip/releases/tag/forever-v0.1.0-alpha.1)
is published. The first marketplace attempt failed HTTP 403 without a provider
success receipt; destination acceptance must be reconciled before retrying.
Wago's public metadata rejects urllib's default user agent but accepts the
truthful KwikTip application identifier now supplied by the helper.
The installed local addon
remains the separately verified `0.1.0-test`; source candidate `0.1.0-alpha.1`
is not installed. No client load or in-game test is established before November 4.

Expand Down Expand Up @@ -67,8 +72,8 @@ Its multipart payloads follow the exact pinned packager implementation: CF
All checksums/tag/flavor/patch validations and both token-presence checks complete
before the first upload. No credentials are given to PR/manual builds.

Actual project token permissions and provider acceptance remain untested until
an approved publication. WoWInterface Forever is disabled pending provider
Project token permissions and provider acceptance must be confirmed from actual
publication results. WoWInterface Forever is disabled pending provider
support; no `WOWI_API_TOKEN` is used in this workflow. The standalone folder stays
`KwikTip_Forever`; no speculative rename was made. Addon-manager acceptance still
needs testing. No marketplace project, token, permission or paid service was created.
Expand All @@ -77,6 +82,15 @@ Uploads across providers are not atomic. The uploader does not retry POSTs and
reports each completed provider. If a later step fails, inspect the existing
files before rerunning; do not blindly duplicate a successful upload.

`forever-marketplace-recovery.yml` provides a manual, default-branch-only recovery
path. It requires an already published Forever alpha prerelease, downloads its
existing ZIP and metadata, and verifies their checksums/tag/flavor before any
upload. It never rebuilds, retags, overwrites GitHub assets, or creates another
release. The default is GET-only metadata preflight. After reconciling prior
outcomes, select only providers still needing the file and explicitly enable
upload. Stage logs identify the failing GET or POST; successful provider file
IDs are retained when supplied. POSTs are never automatically retried.

## Review and first alpha

Local commands, using a new output path:
Expand All @@ -97,9 +111,11 @@ workflow is on the repository's default branch.
For a proposed first public `0.1.0-alpha.1`, review actual coverage/client status,
set the Forever TOC and README version together, update the authored notes, and
rerun the gates. The reviewed candidate now has `0.1.0-alpha.1` metadata prepared;
this does not authorize publication. Obtain approval before pushing `forever-v0.1.0-alpha.1`: that tag is
publication still requires explicit owner authorization. The owner approved and
published `forever-v0.1.0-alpha.1`; for future versions, obtain approval before
pushing a publishing tag: that tag is
the concrete publication trigger. Do not use `v0.1.0-alpha.1`, which belongs to
the Retail workflow's tag space. No tag or push was performed here.
the Retail workflow's tag space.

That publishing tag will upload to the existing CF/Wago pages and create the
GitHub prerelease. A review-branch push and draft PR run build checks only.
Expand Down
Loading
Loading