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

 

History

224 Commits
 
 
 
 
 
 
 
 
 
 

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:
  release:
    name: Publish Release
    runs-on: ubuntu-latest

    permissions:
      contents: write

    steps:
      - uses: actions/checkout@v4

      - name: Create release
        uses: action-pack/github-release@v2
        with:
          tag: MyReleaseTag
          title: MyReleaseTitle
          body: MyReleaseMessage

Notes 📝

If a release with the same tag already exists, it will be deleted first and recreated.

When no body input is provided, the action automatically generates release notes.

The created release is marked as the latest release by default. Set latest to false to disable this.

The tag input is optional. When provided, it is used as the tag name for the release.

The commit input is optional. It can be a commit hash or branch name to attach the release to.

FAQ 💬

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

    This can happen when the workflow does not have permission to create or update releases.

    Add the following permissions to your workflow job:

    permissions:
      contents: write

    Alternatively, enable read and write workflow permissions in your repository settings under:

    Settings -> Actions -> General -> Workflow permissions
    

Stars 🌟

Stargazers

About

Action to create a Github release.

Topics

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages

  • Shell 100.0%