Skip to content

Commit ce200be

Browse files
authored
Create GH Release on version tag push (#548)
Signed-off-by: Florian Hotze <dev@florianhotze.com>
1 parent 1c31b98 commit ce200be

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
changelog:
2+
categories:
3+
- title: "⚠️ Breaking Changes"
4+
labels:
5+
- "breaking change"
6+
- title: "🚀 Enhancements"
7+
labels:
8+
- "enhancement"
9+
- title: "🐛 Bug Fixes"
10+
labels:
11+
- "bug"
12+
- title: "Other Changes"
13+
labels:
14+
- "*"

.github/workflows/build.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,18 @@ jobs:
8484
path: |
8585
test/coverage/lcov-report
8686
87+
- name: Create GitHub Release
88+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
89+
env:
90+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
run: |
92+
gh release create "${{ github.ref_name }}" \
93+
dist/openhab.js \
94+
dist/openhab.d.ts \
95+
dist/@openhab-globals.js \
96+
--title "${{ github.ref_name }}" \
97+
--generate-notes
98+
8799
jsdoc:
88100
name: Publish JSDoc
89101
runs-on: "ubuntu-24.04"

0 commit comments

Comments
 (0)