Skip to content
upload

GitHub Action

Simple Github Release

v2.0.2 Latest version

Simple Github Release

upload

Simple Github Release

Create a Github release

Installation

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

              

- name: Simple Github Release

uses: jim-brighter/github-release-action@v2.0.2

Learn more about this action in jim-brighter/github-release-action

Choose a version

Simple Github Release

Creates a new, barebones Release and Tag, and pushes them to Github

Tag and Release Title follow v[major].[minor].[patch] format, e.g. v1.0.3

Release description is automatically generated

Inputs

  • major-version - Required - used in the major position for the tag and release title
  • minor-version - Required - used in the minor position for the tag and release title
  • patch-version - Optional - used in the patch position for the tag and release title. If omitted, action will increment the patch version from the previous release. Generally recommend not setting this so as to not attempt writing a duplicate tag.

Also required:

  • the token used by your job should have contents: write permissions
  • pass the GITHUB_TOKEN environment variable to the action
  • if using the actions/checkout action, include:
with:
  fetch-tags: true
  fetch-depth: 0

Outputs

None

Example Usage

jobs:
  job:
    runs-on: ubuntu-latest
    permissions:
      id-token: write
      contents: write
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-tags: true
          fetch-depth: 0
      - name: Create Release
        uses: jim-brighter/github-release-action@v2
        env:
          GITHUB_TOKEN: ${{ github.token }}
        with:
          major-version: 1
          minor-version: 0