forked from moonbeam-foundation/frontier
-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (43 loc) · 1.14 KB
/
docs.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
40
41
42
43
44
45
46
47
48
49
50
name: Docs
on:
push:
branches: [ master ]
jobs:
release:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Rust Setup
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-23
target: wasm32-unknown-unknown
override: true
components: rust-docs
- name: Install protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build website
run: |
cd docs
yarn install
yarn run build
- name: Build rustdocs
uses: actions-rs/cargo@v1
with:
command: doc
args: --all --no-deps
- name: Copy rustdocs
run: |
cp -r ./target/doc docs/.vuepress/dist/rustdocs
- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./docs/.vuepress/dist
keep_files: true