1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-31 13:47:02 +02:00

Added a release workflow, creating GH releases from tags

This commit is contained in:
Christopher Kolstad 2021-01-27 11:37:03 +01:00
parent 82f9dbf7a7
commit 913db58c35

View File

@ -0,0 +1,26 @@
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
uses: metcalfc/changelog-generator@v0.4.4
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}}