Required Variables
The GitHub personal access token or GitHub Actions token used to authenticate with the GitHub API.The token needs the or with system properties:GitHub Actions:
repo scope (or contents: write permission in GitHub Actions) to create releases.Example:The GitHub repository in the format or with system properties:GitHub Actions:
owner/repo where the release will be created.Example:The Git reference (tag or branch) for the release. Typically this is a tag like or with system properties:GitHub Actions:
v1.0.0 or refs/tags/v1.0.0.Example:Optional Variables
Whether to create the release as a draft. Draft releases are not visible to the public until published.Example:or with system properties:
Whether to mark the release as a prerelease. Prereleases are marked as “Pre-release” on GitHub and are not considered production-ready.Example:or with system properties:
Source Reference
GitHub properties are defined in:Complete Example
Using Environment Variables
Using System Properties
GitHub Actions Workflow
Tips
- In GitHub Actions, use the built-in
GITHUB_TOKENsecret for authentication - The
GITHUB_REFvalue in GitHub Actions includes the full ref path (e.g.,refs/tags/v1.0.0) - Draft releases are useful for testing the release process before making it public
- Use prerelease for beta, alpha, or release candidate versions