close
The Wayback Machine - https://web.archive.org/web/20220416203759/https://github.com/elgohr/Github-Release-Action
Skip to content
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
main
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.

Github-Release-Action

Actions Status

Publish Github releases

Usage

name: Publish Release
on:
  push:
    tags:
      - 'v*'
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Create a Release
      uses: elgohr/Github-Release-Action@v4
      env:
        GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
      with:
        title: MyReleaseMessage

Please note, that you can't use ${{ secrets.GITHUB_TOKEN }} as it isn't allowed to publish releases.

Argument

The message which should appear in the release. May not contain spaces.