Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
tag

GitHub Action

Release Tag

v4.0.0

Release Tag

tag

Release Tag

Create a release on tag push

Installation

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

              

- name: Release Tag

uses: Akryum/[email protected]

Learn more about this action in Akryum/release-tag

Choose a version

release-tag

This is a fork of actions/create-release with the following changes:

  • Automatically determine whether a tag is a pre-release by checking for presence of - followed by a letter in the tag name.
  • Use changelogen to generate the changelog as release body.

Usage:

name: Create release

# When a tag is pushed, create a release
on:
  push:
    tags:
      - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
  build:
    name: Create Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@master
        with:
          fetch-depth: 0 # Fetch all tags

      - name: Create Release for Tag
        id: release_tag
        uses: Akryum/release-tag
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tag_name: ${{ github.ref }}