From 92d901a8299da542da974874997114471ebc03e8 Mon Sep 17 00:00:00 2001 From: Zephrynis <132010650+zephrynis@users.noreply.github.com> Date: Sat, 5 Apr 2025 13:49:03 +0100 Subject: [PATCH] Fix: blueprint file not added to release --- .github/workflows/export_ext.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/export_ext.yml b/.github/workflows/export_ext.yml index 59522f1..c7438aa 100644 --- a/.github/workflows/export_ext.yml +++ b/.github/workflows/export_ext.yml @@ -26,15 +26,24 @@ jobs: - name: Create zip of project files run: | zip -r sidebar-${{ steps.get_version.outputs.VERSION }}.blueprint . -x "*.git*" - ls -l sidebar-${{ steps.get_version.outputs.VERSION }}.blueprint # Debug: list the created file - - name: Create GitHub Release and Upload Asset - uses: ncipollo/release-action@v1 + - name: Create Release + id: create_release + uses: comnoco/create-release-action@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: "v${{ steps.get_version.outputs.VERSION }}" - release_name: "Release v${{ steps.get_version.outputs.VERSION }}" - body: "Automated release based on version ${{ steps.get_version.outputs.VERSION }}" + tag_name: ${{ steps.get_version.outputs.VERSION }} + release_name: Release v${{ steps.get_version.outputs.VERSION }} + body: "${{ github.event.head_commit.message }}" draft: false prerelease: false - assets: sidebar-${{ steps.get_version.outputs.VERSION }}.blueprint + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: sidebar-${{ steps.get_version.outputs.VERSION }}.blueprint + asset_name: sidebar-${{ steps.get_version.outputs.VERSION }}.blueprint + tag: ${{ steps.get_version.outputs.VERSION }} + overwrite: true