Create GitHub releases with GitHub Actions View article history Edit article

Published: , Updated:
Talks about: , , and

The actions/create-release action allows to create a new GitHub releases in your GitHub Action.

name: <PIPELINE>
jobs:
  build:
    runs-on: <RUN_ON>
    steps:
     - name: Create Release
       uses: actions/[email protected]
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
       with:
         tag_name: <TAG>
         release_name: <RELEASE>
         draft: false
         prerelease: false
         body: |
           Your release text here

           Some code block:
           ```yaml
           yaml:
             inside:
               of:
                 another: yaml
           ```