Skip to content

Create new release

Actions
Action to create a Github release
v2
Latest
Star (1)

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

Create new release is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Action to create a Github release
v2
Latest

Create new release is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.