forked from KILTprotocol/kilt-node
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.01 KB
/
docs-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build and Deploy Chain docs
on:
push:
branches:
- develop
- 'refs/tags/[0-9]+.[0-9]+.[0-9]+*'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Deploy in Container
run: |
docker run --rm \
-v "${GITHUB_WORKSPACE}:/workspace" \
-v "${HOME}/.cargo:/root/.cargo" \
-w /workspace \
paritytech/ci-unified:bullseye-1.74.0 \
bash -c "
RUSTDOCFLAGS='-D warnings' cargo doc --all-features --no-deps --locked && \
chown -R $(id -u):$(id -g) target/doc"
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages-${{ github.ref_name }}
folder: target/doc