Skip to content

Commit 1733e87

Browse files
committed
Add github configuration for auto release
1 parent 08b734d commit 1733e87

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.github/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
changelog:
2+
categories:
3+
- title: Enhancements
4+
labels:
5+
- 'enhancement'
6+
7+
- title: Bug Fixes
8+
labels:
9+
- 'bug'
10+
11+
- title: Chores
12+
labels:
13+
- '*'
14+
15+
exclude:
16+
labels:
17+
- dependencies
18+
authors:
19+
- dependabot
20+
21+
- title: Dependencies
22+
labels:
23+
- dependencies

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
build:
10+
name: Build a package
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- uses: softprops/action-gh-release@v1
18+
if: startsWith(github.ref, 'refs/tags/') # Run only when tagged like v1.0.1
19+
with:
20+
files: packages/${{steps.package_name.outputs.package_name}}.zip
21+
generate_release_notes: true

0 commit comments

Comments
 (0)