capabilities.work

Draft Then Publish Release

A 3-step recipe with Gitea. We can help you get access.

Recipe · 3 steps

Draft Then Publish Release

with Gitea · Software Construction Management

Create a draft release, attach an asset, then publish it.

  1. Create the release as a draft so it is not yet public.
  2. Upload a build artifact to the draft release.
  3. Edit the release to clear the draft flag and publish it.
What you'll need to have ready
  • authToken: Authorization header value, e.g. "token <personal-access-token>".
  • owner: Owner of the repository.
  • repo: Name of the repository.
  • tagName: Git tag the release is created for.
  • releaseName: Display title of the release.
  • releaseBody: Release notes for the release.
  • attachmentName: File name to store the uploaded asset under.
  • attachment: The asset file contents to upload.
For your developer

Arazzo workflow gitea:draft-then-publish-release, 3 operations: repoCreateRelease → repoCreateReleaseAttachment → repoEditRelease. Specs on APIs.io.