Skip to content

Commit

Permalink
Automate github release fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
raynaudoe committed Nov 5, 2024
1 parent 4d8cb89 commit 75b9534
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,26 +103,21 @@ 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 }}
🗳️ system.setCode hash: ${{ fromJSON(steps.srtool_build.outputs.json).runtimes.compressed.subwasm.proposal_hash }}
🗳️ 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

0 comments on commit 75b9534

Please sign in to comment.