forked from keep-starknet-strange/madara
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 951 Bytes
/
rustdoc.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
---
name: Task - Deploy Docs to GitHub Pages
on:
workflow_dispatch:
workflow_call:
jobs:
release:
name: GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set-Up
run: >
sudo apt-get update && sudo apt-get install -y clang llvm libudev-dev
protobuf-compiler
- name: Setup rust toolchain
run: rustup show
- uses: Swatinem/rust-cache@v2
- name: Build Documentation
run: cargo doc --all --no-deps
- name: Prepare index
run: |
echo '<meta http-equiv="refresh" content="0; url=madara/index.html" />' > target/doc/index.html
- name: Deploy Documentation
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc
keep_files: true