Create GitHub releases with GitHub Actions View article history Edit article

Published: , Updated:
Talks about: <a class="post-tag post-tag-github" href="/tags/github">github</a>, <a class="post-tag post-tag-github-actions" href="/tags/github-actions">github actions</a>, and <a class="post-tag post-tag-release" href="/tags/release">release</a>

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/create-release@v1
       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
           ```