From 9ec1dcf54a86deecf4763e30fa688761d145885e Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Mon, 7 Oct 2024 15:12:05 +0900 Subject: [PATCH] Added automatic changelog creation --- .github/workflows/changelog.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..421c7d4 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -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