Skip to content
tag

GitHub Action

Create new release

v2 Latest version

Create new release

tag

Create new release

Action to create a Github release

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Create new release

uses: action-pack/github-release@v2

Learn more about this action in action-pack/github-release

Choose a version

Github Release

Build Version Size

Creates a Github release using a workflow action.

Usage πŸš€

name: Publish Release
on:
  push:
    branches:
      - master
    tags:
      - 'v*'

jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
    - uses: actions/checkout@v4
    - name: Create a release
      uses: action-pack/github-release@v2
      with:
        tag: MyReleaseTag
        title: MyReleaseTitle
        body: MyReleaseMessage

Notes πŸ“

The title input is the release name.

The body input is the release notes (optional).

The tag input is the tagname to be created for the release (optional).

The commit input is a commit hash or branch name to attach the release to (optional).

The token input is the repository access token (optional), defaults to secrets.GITHUB_TOKEN.

FAQ πŸ’¬

  • Why do I get the error 'Resource not accessible by integration'?

    This can happen if the Workflow permissions in your repository settings ( Actions -> General ) are not set to the Read and write option.

    Either change that setting or otherwise add the following lines to your workflow job:

    permissions:
      contents: write

Stars 🌟

Stars