Update to polkadot-sdk/release-polkadot-v1.1.0 (#726) #1559
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: publish | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git | |
jobs: | |
docs: | |
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' | |
name: docs | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install apt dependencies | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install -y clang libssl-dev llvm libudev-dev libgmp3-dev protobuf-compiler && \ | |
sudo rm -rf /var/lib/apt/lists/* | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
- name: Build documentation | |
run: cargo doc --no-deps | |
- name: Publish documentation | |
run: | | |
cd target/doc | |
git init | |
echo '<meta http-equiv="refresh" content="0; url=https://webb-tools.github.io/dkg-substrate/dkg_gadget/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 |