chore: bump to version 2.5.0-rc7 (specVersion: 145) (#823) #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
srtool: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache target dir | |
uses: actions/cache@v3 | |
with: | |
path: '${{ github.workspace }}/substrate-node/runtime/target' | |
key: srtool-target-tfchain-${{ github.sha }} | |
restore-keys: | | |
srtool-target-tfchain- | |
srtool-target- | |
- name: Srtool build | |
id: srtool_build | |
uses: chevdor/[email protected] | |
with: | |
workdir: '${{ github.workspace }}/substrate-node' | |
package: tfchain-runtime | |
runtime_dir: runtime | |
- name: Summary | |
run: | | |
echo '${{ steps.srtool_build.outputs.json }}' | jq . > tfchain-srtool-digest.json | |
cat tfchain-srtool-digest.json | |
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}" | |
- name: Upload tfchain srtool json | |
uses: actions/upload-artifact@v3 | |
with: | |
name: tfchain-srtool-digest-json | |
path: tfchain-srtool-digest.json | |
- name: Upload runtime | |
uses: actions/upload-artifact@v3 | |
with: | |
name: tfchain-runtime | |
path: substrate-node/${{ steps.srtool_build.outputs.wasm_compressed }} | |
release: | |
needs: srtool | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Work around for https://github.com/heinrichreimer/action-github-changelog-generator/issues/21 | |
- name: Download artifacts | |
id: download | |
uses: actions/download-artifact@v3 | |
with: | |
name: tfchain-runtime | |
path: tfchain-runtime | |
- name: Generate changelog | |
id: changelog | |
uses: heinrichreimer/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
headerLabel: "# π Changelog" | |
breakingLabel: '### π₯ Breaking' | |
enhancementLabel: '### π Enhancements' | |
bugsLabel: '### π Bug fixes' | |
securityLabel: '### π‘οΈ Security' | |
issuesLabel: '### π Other issues' | |
prLabel: '### π Other pull requests' | |
addSections: '{"documentation":{"prefix":"### π Documentation","labels":["documentation"]},"tests":{"prefix":"### β Testing","labels":["tests"]}}' | |
onlyLastTag: true | |
issues: false | |
issuesWoLabels: false | |
pullRequests: true | |
prWoLabels: true | |
author: true | |
unreleased: true | |
compareLink: true | |
stripGeneratorNotice: true | |
verbose: true | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
name: Release ${{ github.ref_name }} | |
draft: false | |
fail_on_unmatched_files: true | |
prerelease: ${{ contains(github.ref, 'rc') }} | |
body: ${{ steps.changelog.outputs.changelog }} | |
files: tfchain-runtime/* |