Creates a plain Github release, without attaching assets or source code.
name: Publish Release
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create a Release
uses: kuloud/Github-Release-Action@v1
env:
GH_TOKEN: $
with:
title: MyReleaseMessage
draft: false
prerelease: false
title
is a message which should appear in the release. May contain spaces.
tag_name
is the name of the tag for the release. If not provided, it will use the current git tag.
body
is the text content of the release. Can be used to provide detailed release notes.
draft
determines whether the release should be created as a draft. Default is false.
prerelease
specifies if this is a prerelease. Default is false.
workdir
can be used to specify a directory that contains the repository to be published.
generate_notes
automatically generates release notes if set to true. Default is false.
notes
allows you to specify release notes directly.
notes_file
is the path to a file containing release notes.
discussion_category
specifies the GitHub Discussions category to create for this release.
target
allows you to specify the target branch or commit for the release.
verify_tag
verifies if the tag exists before creating the release. Default is false.
$
can be used for publishing, if you configure the correct permissions.
This can be done by giving the Github token all permissions (referred to as “Read and write permission”) with the setting below available in Settings > Actions > General
OR alternatively it can be achieved via adding
permissions:
packages: write
contents: write
to the concrete job creating the release. For more details see the documentation on token permissions.