From 75b9534d590c23aead7197b874d312a47f958e40 Mon Sep 17 00:00:00 2001 From: Ezequiel Raynaudo Date: Tue, 5 Nov 2024 09:24:08 -0300 Subject: [PATCH] Automate github release fix attempt --- .github/workflows/build-release.yaml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index f439c36..3c82593 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -103,18 +103,14 @@ jobs: # Release published: add artifacts to release - name: Create GitHub Release - uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ github.event.inputs.tag_version }} - name: Release ${{ github.event.inputs.tag_version }} - draft: false - prerelease: false - generate_release_notes: true - token: ${{ secrets.PASEO_RUNTIME_CI_PAT }} - append_body: true - body: | - ## Runtime: `${{ matrix.runtime.name }}` - ``` + env: + GH_TOKEN: ${{ secrets.PASEO_RUNTIME_CI_PAT }} + run: | + gh release create ${{ github.event.inputs.tag_version }} \ + --title "Release ${{ github.event.inputs.tag_version }}" \ + --generate-notes \ + --notes "## Runtime: \`${{ matrix.runtime.name }}\` + \`\`\` 🏋️ Runtime Size: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.size }} bytes 🔥 Core Version: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.core_version.specName }}-${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.core_version.specVersion }} 🎁 Metadata version: V${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.metadata_version }} @@ -122,7 +118,6 @@ jobs: 🗳️ authorizeUpgrade hash: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.parachain_authorize_upgrade_hash }} 🗳️ Blake2-256 hash: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.blake2_256 }} 📦 IPFS: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.ipfs_hash }} - ``` - files: | - ${{ steps.srtool_build.outputs.wasm_compressed }} + \`\`\`" \ + ${{ steps.srtool_build.outputs.wasm_compressed }} \ ${{ matrix.runtime.name }}-srtool-digest.json