Skip to content

ci: a decdn/publish GitHub Action that publishes release assets on tag and appends the decdn.link line to the notes #2596

Description

@thiras

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, so uses: decdn/publish@v1 resolves; 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 | sh snippet for workflows. Works, but nobody copies a 12-line snippet from a docs page into a release workflow; a one-line uses: 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

Activity

  1. added
    kind:feature
    prio:high
    area:cli
    area:ci
    on Oct 24, 2026
  2. added theissue type on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ciarea:clikind:featureprio:high

    Fields

    Priority

    None yet

    Projects

    • Status
      Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions