2021-01-26 11:53:02 +01:00
|
|
|
name: 'Releases'
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build changelog
|
|
|
|
id: github_release
|
2021-11-25 20:08:33 +01:00
|
|
|
uses: metcalfc/changelog-generator@v3.0.0
|
2021-01-26 11:53:02 +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}}
|