-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (52 loc) · 1.34 KB
/
merge-pages-docs.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Deploy docs
on:
push:
paths:
- '.github/actions/cargo-command/**'
- '.github/workflows/merge-pages-docs.yaml'
- 'chronicle/**'
- 'config/subxt/**'
- 'docs/**'
- 'lib/**'
- 'node/**'
- 'pallets/**'
- 'primitives/**'
- 'runtime/**'
- 'tc-subxt/**'
- 'tss/**'
- 'rust-toolchain.toml'
branches:
- 'development'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
- name: Checkout sources
uses: actions/checkout@v4
- name: Build docs
uses: ./.github/actions/cargo-command
with:
command: doc
args: --no-deps --all-features --document-private-items
- name: Assemble structure
env:
DOCS_HIDEOUT: an8ohgahmoot6ro8ieReib9micau0Oow
run: |
mkdir dist
cp -r target/doc dist/$DOCS_HIDEOUT
cp docs/robots.txt dist/$DOCS_HIDEOUT
- name: Upload docs
uses: actions/upload-pages-artifact@v3
with:
path: dist
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4