Skip to content

Add Circom stuff to the Runtime #549

Add Circom stuff to the Runtime

Add Circom stuff to the Runtime #549

Workflow file for this run

name: publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
docs:
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main'
name: docs
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set-Up
run: sudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl protobuf-compiler
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Update apt repositories
run: sudo apt update
- name: Setup DVC
uses: iterative/setup-dvc@v1
- name: Fetch Fixtures
run: ./scripts/fetch-fixtures.sh
- name: Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
target
target/debug
target/release
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build documentation
run: cargo doc --release --no-deps
- name: Publish documentation
run: |
cd target/doc
git init
echo '<meta http-equiv="refresh" content="0; url=https://webb-tools.github.io/protocol-substrate/pallet_vanchor/index.html">' > index.html
git add .
git -c user.name='ci' -c user.email='ci' commit -m 'Deploy documentation 🚀'
git push -f -q https://git:${{ secrets.github_token }}@github.com/${{ github.repository }} HEAD:gh-pages