Skip to content

Warning

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

releases-action

Actions
Create a new release
v2
Star (9)

GitHub Actions status Release Status

releases-action

A GitHub action to create a release from branch when pushing a new tag.

Other notable packages that did not satisfy my use case:

Usage

name: Tag it

on: push

jobs:
  create-release:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0  # need this for all history for all branches and tags
      - name: Create Release
        id: create_release
        uses: nickatnight/releases-action@master
        if: startsWith(github.ref, 'refs/tags/')
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

    outputs:
      ReleaseTag: ${{ steps.create_release.outputs.release_tag }}

  # pass in as env variable
  explore-essos:
    runs-on: ubuntu-latest
    needs: [create-release]
    env:
      RELEASE_TAG: ${{ needs.create-release.outputs.ReleaseTag }}
    steps:
      ...

Supported Parameters

Parameter Description Default
branch Which branch do we want to release from? master
name Name of the release name of tag
message Body of the release changelog
draft Is this a draft? false
prerelease Is this a prerelease? false
tag Name of tag GITHUB_REF

releases-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Create a new release
v2

releases-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.