diff --git a/.github/release.yml b/.github/release.yml deleted file mode 100644 index 686fcab..0000000 --- a/.github/release.yml +++ /dev/null @@ -1,28 +0,0 @@ -changelog: - exclude: - labels: - - ignore-for-release - categories: - - title: Features - labels: - - feat - - title: Bug Fixes - labels: - - fix - - title: Documentation - labels: - - docs - - title: Rewrite - labels: - - refractor - - perf - - title: Style - labels: - - style - - title: Other Changes - labels: - - chore - - ops - - build - - test - - ci \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af06a13..4656c94 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,13 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + + - name: Update CHANGELOG + id: changelog + uses: requarks/changelog-action@v1 + with: + token: ${{ github.token }} + tag: ${{ github.ref_name }} - name: Set up Python uses: actions/setup-python@v5 @@ -40,8 +47,18 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + makeLatest: true name: ${{ github.ref_name }} tag_name: ${{ github.ref_name }} + body: ${{ steps.changelog.outputs.changes }} files: ./tasty_supplies/build/*.zip - fail_on_unmatched_files: true \ No newline at end of file + fail_on_unmatched_files: true + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Commit CHANGELOG.md + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: main + commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]' + file_pattern: CHANGELOG.md \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..751d2d4 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). \ No newline at end of file