From 3e629ce082f43c4e8d90c5cef236b9852ab732b8 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Tue, 13 Jan 2026 19:33:09 +0000 Subject: [PATCH] release.yml --- .github/workflows/build.yml | 18 +---------------- .github/workflows/release.yml | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec27a100..4b02fab4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,20 +74,4 @@ jobs: with: name: firmware-release-${{ matrix.environment }} path: build_output/release/*.bin - release: - name: Create Release - runs-on: ubuntu-22.04 - needs: [get_default_envs, build] - if: startsWith(github.ref, 'refs/tags/') - steps: - - uses: actions/download-artifact@v4 - - name: List Artifacts - run: find ./ -type f -name *.bin -exec mv -v {} ./ \; - - name: Create draft release - uses: softprops/action-gh-release@v1 - with: - draft: True - files: | - WLEDMM*.bin - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..a6b92a09 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: WLED Release CI + +on: + push: + tags: + - '*' + +jobs: + + wled_build: + uses: ./.github/workflows/build.yml + + release: + name: Create Release + runs-on: ubuntu-latest + needs: wled_build + steps: + - uses: actions/download-artifact@v4 + with: + merge-multiple: true + - name: "✏️ Generate release changelog" + id: changelog + uses: janheinrichmerker/action-github-changelog-generator@v2.3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + sinceTag: v14.7.1 + maxIssues: 500 + # Exclude issues that were closed without resolution from changelog + exclude-labels: 'stale,wontfix,duplicate,invalid' + - name: Create draft release + uses: softprops/action-gh-release@v1 + with: + body: ${{ steps.changelog.outputs.changelog }} + draft: True + files: | + *.bin + *.bin.gz +