Skip to content

Commit

Permalink
gas eval fig included as link in release note
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaven committed Apr 26, 2023
1 parent 6ce802c commit f3dac84
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ jobs:
run: |
python3 ./tests/MultiPubsGasCostEval.py
- name: Convert figures into inlined SVG
run: |
python3 ./utils/SvgToInlineMd.py --input ./build/publish_gas_cost.svg --output ./build/publish_gas_cost.md --title "Gas Cost of Publishing Events"
python3 ./utils/SvgToInlineMd.py --input ./build/subscribe_gas_cost.svg --output ./build/subscribe_gas_cost.md --title "Gas cost of Subscribing to Publishers"
- name: Generate release note
run: |
echo "# Release note" >> ./build/release_note.md
Expand All @@ -137,9 +132,13 @@ jobs:
echo "" >> ./build/release_note.md
echo "## Gas Cost Evaluations" >> ./build/release_note.md
echo "### Gas Cost of Publishing Events" >> ./build/release_note.md
cat ./build/publish_gas_cost.md >> ./build/release_note.md
echo "" >> ./build/release_note.md
echo '!'"[publish_gas_cost](/../../releases/download/${{ github.ref_name }}/publish_gas_cost.svg)" >> ./build/release_note.md
echo "" >> ./build/release_note.md
echo "### Gas cost of Subscribing to Publishers" >> ./build/release_note.md
cat ./build/subscribe_gas_cost.md >> ./build/release_note.md
echo "" >> ./build/release_note.md
echo '!'"[subscribe_gas_cost](/../../releases/download/${{ github.ref_name }}/subscribe_gas_cost.svg)" >> ./build/release_note.md
echo "" >> ./build/release_note.md
echo "" >> ./build/release_note.md
- name: Release
Expand All @@ -155,3 +154,5 @@ jobs:
${{ github.workspace }}/build/HelloWorldPublisher.abi
${{ github.workspace }}/build/HelloWorldSubscriber.bin
${{ github.workspace }}/build/HelloWorldSubscriber.abi
${{ github.workspace }}/build/publish_gas_cost.svg
${{ github.workspace }}/build/subscribe_gas_cost.svg

0 comments on commit f3dac84

Please sign in to comment.