Skip to content

Commit

Permalink
Merge pull request #5 from enthus-golang/fk_changelog
Browse files Browse the repository at this point in the history
Added automatic changelog creation
  • Loading branch information
Hinne1 authored Oct 7, 2024
2 parents 3327d78 + 9ec1dcf commit 2c5f859
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
tags:
- 'v*.*.*' # Trigger on version tags like v1.0.0, v2.1.0, etc.

permissions:
contents: write

jobs:
release:
name: Create GitHub Release
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Git
run: |
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
- name: Generate Changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v5

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref }} # Use the tag as the release name
body: ${{ steps.changelog.outputs.changelog }} # Attach changelog

0 comments on commit 2c5f859

Please sign in to comment.