-
-
Notifications
You must be signed in to change notification settings - Fork 4
Setup Pipeline CRYPTO
-
Before setting up a pipeline the CNS name should be configured, it should have a resolver. Take a look on prev page
-
Basic pipeline should be configured with step which provides IPFS hash
Open and add the step to main.yml
- uses: aquiladev/ddns-action@v0.1.1
with:
mnemonic: ${{ secrets.MNEMONIC }}
rpc: ${{ secrets.RPC }}
name: ddns-action.crypto
contentHash: ${{ steps.upload.outputs.hash }}
-
${{ secrets.MNEMONIC }}
is a secret. The mnemonic phrase is needed for wallet recovery of an account which owns CNS name. It can be a private key of the account as well -
${{ secrets.RPC }}
is a secret. RPC is a URL of Ethereum Mainnet node -
ddns-action.crypto
- CNS name which you want to update -
${{ steps.upload.outputs.hash }}
is content hash. It came from upload to IPFS step
Eventually pipeline should look like
name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: npm ci
- run: npm run build
- name: Upload to IPFS
uses: aquiladev/ipfs-action@v0.1.2-alpha
id: upload
with:
path: ./build
- name: Update CNS
uses: aquiladev/ddns-action@v0.1.1
with:
mnemonic: ${{ secrets.MNEMONIC }}
rpc: ${{ secrets.RPC }}
name: ddns-action.crypto
contentHash: ${{ steps.upload.outputs.hash }}
The pipeline will run immediately after commit (if you committed to master branch)
You can open all pipeline runs and check outputs