Skip to content

Commit 802096f

Browse files
authored
Merge pull request #24 from bastelfreak/release
Add GitHub action to create GitHub releases
2 parents ef5aa9b + 9f53265 commit 802096f

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
3+
4+
changelog:
5+
exclude:
6+
labels:
7+
- duplicate
8+
- invalid
9+
- modulesync
10+
- question
11+
- skip-changelog
12+
- wont-fix
13+
- wontfix
14+
- github_actions
15+
16+
categories:
17+
- title: Breaking Changes 🛠
18+
labels:
19+
- backwards-incompatible
20+
21+
- title: New Features 🎉
22+
labels:
23+
- enhancement
24+
25+
- title: Bug Fixes 🐛
26+
labels:
27+
- bug
28+
- bugfix
29+
30+
- title: Documentation Updates 📚
31+
labels:
32+
- documentation
33+
- docs
34+
35+
- title: Dependency Updates ⬆️
36+
labels:
37+
- dependencies
38+
39+
- title: Other Changes
40+
labels:
41+
- "*"

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Gem Release
3+
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
9+
permissions: {}
10+
11+
jobs:
12+
create-github-release:
13+
# Prevent releases from forked repositories
14+
if: github.repository_owner == 'OpenVoxProject'
15+
needs: build-release
16+
name: Create GitHub release
17+
runs-on: ubuntu-24.04
18+
permissions:
19+
contents: write # clone repo and create release
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Create Release
23+
shell: bash
24+
env:
25+
GH_TOKEN: ${{ github.token }}
26+
run: gh release create --repo ${{ github.repository }} ${{ github.ref_name }} --generate-notes

0 commit comments

Comments
 (0)