Repository navigation
Description
Component
cli (decdn binary)
Who it affects
publisher (someone importing content or sponsoring downloads)
Problem
The customer the flash-crowd post names ships through GitHub Releases: a tag, a workflow, assets attached, release notes. Even with decdn publish ./dir (#2591) that is still a separate tool they run by hand on launch day, from a machine with a keystore on it. Nothing puts deCDN inside the workflow where the launch-day bet is placed.
Proposed solution
A GitHub Action, decdn/publish, that a release workflow calls once:
- uses: decdn/publish@v1
with:
path: dist/ # or: release: ${{ github.event.release.tag_name }}
namespace: ${{ vars.DECDN_NAMESPACE }}
key: ${{ secrets.DECDN_PUBLISHER_KEY }}On a tag it: installs the pinned decdn release (the same signed binary the installers fetch), runs decdn publish on the given directory or on the release's uploaded assets, and appends a line per asset to the release notes:
Download via deCDN: https://<ns>.decdn.link/<tag>/<asset> (sha256 …, verified on the way in)
Outputs: the decdn: URI and the gateway URL per asset, so a workflow can also post them elsewhere.
- Key handling. The publisher key is an action secret; the action never writes it to disk unencrypted and never logs it. A publisher who prefers not to put a key in CI can point the action at a sponsord daemon instead (
sponsord_url+sponsord_token), which signs on their behalf. - Idempotent. A re-run on the same tag re-publishes nothing already in the namespace (the manifest hash matches) and only rewrites the notes line.
- Where it lives. Its own repo,
decdn/publish, souses: decdn/publish@v1resolves; a composite action over the CLI, no JavaScript runtime. Release it from this repo's release pipeline alongside the binaries so the pinned CLI version moves with each release. - Marketplace listing once it works end to end on one real release.
Alternatives considered
- Document a
curl | shsnippet for workflows. Works, but nobody copies a 12-line snippet from a docs page into a release workflow; a one-lineuses:is what gets adopted. - A GitHub App that watches releases. Needs an install flow, a hosted service and permissions on the repo. The action runs in the customer's CI with the permissions it already has.
Design scope
- This proposal changes the protocol, the economics, or the contract surface.
Related
- Depends on
decdn publish ./dir: cli:decdn publish ./dirpublishes a directory to a namespace in one command #2591 - Prints the hosted gateway URL: gateway: hosted public HTTP gateway at
<ns>.decdn.linkthat pays a pool behind the scenes #2593 - Foreign-hash line in the notes: ingress: accept SHA-256, CID and infohash identifiers and map them to BLAKE3 internally #2595
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity