GitHub Action for creating releases on GitHub. This action is a wrapper around the Create a release endpoint in the GitHub REST API.
token
- The GitHub token to use for authentication. When not specified, GITHUB_TOKEN env variable is usedtag-name
- The name of the tag to createtarget-commitish
- The commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch (usually main)name
- The name of the releasebody
- Text describing the contents of the tagdraft
- true to create a draft (unpublished) release, false to create a published one. Default: falseprerelease
- true to identify the release as a prerelease. false to identify the release as a full release. Default: falsediscussion-category-name
- The name of the discussion category to associate with this releasegenerate-release-notes
- true to generate release notes for the release. false to skip the generation of release notes. Default: falsemake-latest
- true to update the repository's default branch with the newly created tag. false to skip updating the default branch. Default: false
GITHUB_TOKEN
- The GitHub token to use for authentication. It's used whentoken
input is not specified
id
- The ID of the releasenode-id
- The Node ID of the releaseurl
- The URL of the releasehtml-url
- The HTML URL of the releaseassets-url
- The URL of the release assetsupload-url
- The URL to upload release assets totarball-url
- The URL of the release tarballzipball-url
- The URL of the release zipballtag-name
- The name of the tag that was createdtarget-commitish
- The commitish value that determines where the Git tag is created fromname
- The name of the releasebody
- Text describing the contents of the tagdraft
- true if the release is a draft (unpublished) release, false if the release is publishedprerelease
- true if the release is identified as a prerelease release, false if the release is identified as a full releasecreated-at
- The date and time the release was createdpublished-at
- The date and time the release was published at
name: Create release
on:
push:
tags:
- 'v*'
jobs:
build:
name: Create release
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: dae-ne/create-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag-name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
- run: echo ${{ steps.create_release.outputs.id }}