From f7dd8f88f0f527fc28be77e9bcd937fc484573e8 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 24 Apr 2024 02:36:01 +0100 Subject: Automatically generate changelog on release --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.github/workflows/release.yml') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8ea5f7a..f02db1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,11 +36,13 @@ jobs: else tar czvf ${{ matrix.name }} target/release/${{ matrix.bin }} sentrum.sample.toml contrib/sentrum.service fi + - name: Generate Changelog + run: utils/generate_changelog.sh ${{ github.ref_name }} > ${{ github.workspace }}-CHANGELOG.md - name: Publish uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: - body_path: docs/CHANGELOG.md + body_path: ${{ github.workspace }}-CHANGELOG.md draft: true fail_on_unmatched_files: true files: sentrum-* -- cgit v1.2.3-70-g09d2