Skip to content

Commit

Permalink
Fix doc and samples
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Jun 4, 2021
1 parent 60dc31a commit 2bd14fd
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ In order to use this Github Action, you will need a Github repository with your

Before you setup your new workflow, you should gather the following information:

- name of your chain: ie. Polkadot
- name of your chain: ie. polkadot
- runtime package: ie. runtime-polkadot
- location of your runtime: ie. runtime/polkadot

Expand Down
13 changes: 6 additions & 7 deletions examples/01_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
chain: ["westend"]
chain: ["statemine", "westmint"]
steps:
- uses: actions/checkout@v2
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@draft
uses: chevdor/srtool-actions@v0.1.0
with:
chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
- name: Summary
run: |
echo Summary:
echo - version: ${{ steps.srtool_build.outputs.version }}
echo - info: ${{ steps.srtool_build.outputs.info }}
echo - json: ${{ steps.srtool_build.outputs.json }}
echo - prop: ${{ steps.srtool_build.outputs.proposal_hash }}
echo '${{ steps.srtool_build.outputs.json }}' | jq > ${{ matrix.chain }}-srtool-digest.json
cat ${{ matrix.chain }}-srtool-digest.json
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"
2 changes: 1 addition & 1 deletion examples/02_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@draft
uses: chevdor/srtool-actions@v0.1.0
with:
chain: ${{ matrix.chain }}
- name: Summary
Expand Down
30 changes: 30 additions & 0 deletions examples/03_artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Srtool build

on: push

jobs:
srtool:
runs-on: ubuntu-latest
strategy:
matrix:
chain: ["statemine", "westmint"]
steps:
- uses: actions/checkout@v2
- name: Srtool build
id: srtool_build
uses: chevdor/srtool-actions@v0.1.0
with:
chain: ${{ matrix.chain }}
runtime_dir: polkadot-parachains/${{ matrix.chain }}-runtime
- name: Summary
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq > ${{ matrix.chain }}-srtool-digest.json
cat ${{ matrix.chain }}-srtool-digest.json
echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}"
- name: Archive Runtime
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.chain }}-runtime-${{ github.sha }}
path: |
${{ steps.srtool_build.outputs.wasm }}
${{ matrix.chain }}-srtool-digest.json
1 change: 1 addition & 0 deletions examples/04_ipfs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# todo
8 changes: 4 additions & 4 deletions examples/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include::02_report.yml[]
include::03_artifacts.yml[]
----

== IPFS
----
include::04_ipfs.yml[]
----
// == IPFS
// ----
// include::04_ipfs.yml[]
// ----

0 comments on commit 2bd14fd

Please sign in to comment.