2022-04-05 15:21:34 +02:00
|
|
|
name: 'Release changelog'
|
2021-01-27 11:37:03 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2022-03-25 10:18:06 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-01-27 11:37:03 +01:00
|
|
|
- name: Build changelog
|
|
|
|
id: github_release
|
2022-07-27 11:42:53 +02:00
|
|
|
uses: metcalfc/changelog-generator@v3.0.0
|
2021-01-27 11:37:03 +01:00
|
|
|
with:
|
|
|
|
myToken: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Create release
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
with:
|
|
|
|
tag_name: ${{ github.ref }}
|
|
|
|
release_name: ${{ github.ref }}
|
|
|
|
body: ${{ steps.github_release.outputs.changelog }}
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
|