Skip to content

action-pack/github-release

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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