Skip to content

Commit 434ff48

Browse files
committed
build: add release workflow and template
1 parent 5cee1dc commit 434ff48

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/release-drafter.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name-template: "IDDEFIX v$NEXT_PATCH_VERSION"
2+
tag-template: "v$NEXT_PATCH_VERSION"
3+
categories:
4+
- title: "🚀 New Features"
5+
labels: ["feature", "feat", "enhancement"]
6+
- title: "🐛 Bugfixes"
7+
labels: ["bug", "fix", "bugfix"]
8+
- title: "💗 Other Tag Highlights"
9+
labels: ["style", "test", "docs", "build"]
10+
- title: "👋👩‍💻 New Contributors"
11+
labels: ["contributor"]
12+
change-template: "- $TITLE (@$AUTHOR)"
13+
template: |
14+
# IDDEFIX v$NEXT_PATCH_VERSION
15+
*Coming soon!*
16+
17+
## 🚀 New Features
18+
$CHANGES
19+
20+
## 💗 Other Tag Highlights
21+
$CHANGES
22+
23+
## 🐛 Bugfixes
24+
$CHANGES
25+
26+
## 👋👩‍💻 New Contributors
27+
$CONTRIBUTORS
28+
29+
## 📝Full changelog
30+
[`git log $PREVIOUS_TAG...$CURRENT_TAG`](https://github.com/OWNER/REPO/compare/$PREVIOUS_TAG...$CURRENT_TAG)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release Drafter (Manual)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version tag for the release (e.g., v0.1.0)'
8+
required: false
9+
publish:
10+
description: 'Publish release (true) or just draft (false)?'
11+
required: false
12+
default: 'false'
13+
14+
jobs:
15+
update_release_draft:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: release-drafter/release-drafter@v6
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
version: ${{ github.event.inputs.version }}
23+
publish: ${{ github.event.inputs.publish }}

0 commit comments

Comments
 (0)