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
|
2023-10-05 10:19:57 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-01-26 11:53:02 +01:00
|
|
|
- name: Build changelog
|
|
|
|
id: github_release
|
2024-03-01 04:13:20 +01:00
|
|
|
uses: metcalfc/changelog-generator@v4.3.1
|
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 }}
|
2022-09-09 08:51:56 +02:00
|
|
|
body: ${{ steps.github_release.outputs.changelog }}
|
2022-07-12 15:34:10 +02:00
|
|
|
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
|
2021-01-26 11:53:02 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
|