Skip to content

Commit cc1be62

Browse files
authored
Merge pull request #48 from rmiki-dev/version
ci: add semantic-release job for automated version bumping
2 parents 345d290 + 92f3eec commit cc1be62

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ jobs:
3939
uses: actions/checkout@v6
4040
- name: Build and test
4141
run: make
42+
version-release:
43+
runs-on: ubuntu-latest
44+
needs: [test-makefile, test-fedora]
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v6
48+
with:
49+
fetch-depth: 0
50+
fetch-tags: true
51+
- name: Semantic Release
52+
uses: cycjimmy/semantic-release-action@v6
53+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.RELEASE_APP_ID }}

.releaserc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
branches:
2+
- main
3+
4+
plugins:
5+
- "@semantic-release/commit-analyzer"
6+
- "@semantic-release/release-notes-generator"
7+
- "@semantic-release/github"

0 commit comments

Comments
 (0)