Skip to content

Commit 096dc9e

Browse files
author
Jason Kai
committed
Add workflows for version bumping / releasing, CI
Wasn't originally planning on this, but added in additional CI workflows to help with versioning from PRs, making the process less manual. This will help with building the documentations as well. Adds bump_version workflow and release-drafter for creating notes. Also incorporates some CI changes that were already introduced in #192.
1 parent 54e8160 commit 096dc9e

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.github/release-drafter.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name-template: $RESOLVED_VERSION
3+
tag-template: v$RESOLVED_VERSION
4+
filter-by-commitish: true
5+
template: |
6+
## Changes
7+
$CHANGES
8+
categories:
9+
- title: 🚀 Features
10+
labels: [breaking, enhancement]
11+
- title: 🐛 Bug Fixes
12+
labels: [bug]
13+
- title: 🧰 Maintenance
14+
labels: [maintenance, test]
15+
- title: 📝 Documentation
16+
labels: [documentation]
17+
exclude-labels: [skip_changelog]
18+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
19+
change-title-escapes: \<*_& # You can add # and @ to disable mentions, and add ` to disable code blocks.
20+
version-resolver:
21+
major:
22+
labels: [breaking]
23+
minor:
24+
labels: [enhancement]
25+
patch:
26+
labels: [maintenance, bug, test, documentation]
27+
default: patch

.github/workflows/bump_version.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Bump version
3+
on:
4+
pull_request_target:
5+
types: [closed]
6+
jobs:
7+
bump-version:
8+
if: github.event.pull_request.merged == true
9+
uses: khanlab/actions/.github/workflows/workflow-version_task-semverGithub.yml@v0.2.1
10+
secrets:
11+
BP-PAT: ${{ secrets.BP_PAT_TOKEN }}

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Release package
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
comments:
7+
description: Comments
8+
required: false
9+
jobs:
10+
release_package:
11+
uses: khanlab/actions/.github/workflows/workflow-release_task-publishGithub.yml@v0.2.1
12+
with:
13+
comments: ${{ github.event.inputs.comments }}
14+
secrets:
15+
BP-PAT: ${{ secrets.BP_PAT_TOKEN }}

0 commit comments

Comments
 (0)