Skip to content

Commit

Permalink
Add github release builder
Browse files Browse the repository at this point in the history
  • Loading branch information
BrutalBirdie committed Apr 21, 2022
1 parent d52f34b commit e49e327
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/cb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": ["feature"]
},
{
"title": "## ⭐ Enhancement",
"labels": ["enhancement"]
},
{
"title": "## 🐛 Fixes",
"labels": ["fix", "bug"]
},
{
"title": "## 🧪 Tests",
"labels": ["test"]
}
],
"pr_template": "- ${{TITLE}} - Thanks to @${{AUTHOR}} 💙\n - PR: #${{NUMBER}}"
}
31 changes: 31 additions & 0 deletions .github/workflows/changelog_builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 'Release and Changelog Builder'
on:
push:
tags:
- '*'

jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build Changelog
id: github_release
uses: mikepenz/[email protected]
with:
configuration: ".github/workflows/cb.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
allowUpdates: true
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e49e327

Please sign in to comment.