Skip to content

Commit

Permalink
feat(ci): add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshnayak305 committed Nov 27, 2024
1 parent 3bff957 commit 62fedc1
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/changelog-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": [
"feature",
"feat"
]
},
{
"title": "## 🐛 Fixes",
"labels": [
"fix",
"bug"
]
},
{
"title": "## 🧪 Tests",
"labels": [
"test"
]
},
{
"title": "## 📦 Other",
"labels": []
}
]
}
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Release

on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v5
with:
mode: "COMMIT"
configuration: .github/changelog-config.json
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
append_body: true
body: ${{ steps.build_changelog.outputs.changelog }}

0 comments on commit 62fedc1

Please sign in to comment.