Skip to content

Release 4.0.3

Release 4.0.3 #3

Workflow file for this run

name: Release
on:
push:
tags: [ v* ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Generate Release Notes
uses: octokit/[email protected]
id: get_release_notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
route: POST /repos/${{ github.repository }}/releases/generate-notes
tag_name: ${{ github.ref_name }}
previous_tag_name: ${{ steps.last_release.outputs.tag }}
- name: Set Release content
run: |
echo "RELEASE_CONTENT<<EOF" >> $GITHUB_ENV
echo "${{ fromJson(steps.get_release_notes.outputs.data).body }}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Generate Release
uses: octokit/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
route: POST /repos/${{ github.repository }}/releases
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
body: ${{ toJSON(env.RELEASE_CONTENT) }}