Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1.9 KB

readme.md

File metadata and controls

64 lines (46 loc) · 1.9 KB

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