From a74bcb0ee8fc5e64a450906935b7b0fa2b329520 Mon Sep 17 00:00:00 2001 From: MarvinF Date: Tue, 24 Jun 2025 20:10:53 +0200 Subject: [PATCH] Update build_release.yml --- .github/workflows/build_release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index b27adb6..9d251f8 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -24,14 +24,37 @@ jobs: - name: Install npm dependencies run: npm ci + + - name: Generate release notes + id: release_notes + uses: release-drafter/release-drafter@v6 + with: + config-name: release-drafter.yml + - name: Save release notes to file + run: | + echo "${{ steps.release_notes.outputs.body }}" > RELEASE_NOTES.md + + - name: Configure Git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Commit RELEASE_NOTES.md + run: | + git add RELEASE_NOTES.md + git commit -m "Update RELEASE_NOTES.md for ${{ github.ref_name }}" || echo "No changes to commit" + git push + - name: Run build script run: npm run release - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: + tag_name: "${{ github.ref_name }}" name: "Release ${{ github.ref_name }}" files: package/packages/com_sportsmanager.zip + body_path: "RELEASE_NOTES.md" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}