forked from vmware-archive/node-replicated-kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 949 Bytes
/
Copy pathdocumentation.yml
File metadata and controls
36 lines (35 loc) · 949 Bytes
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
on:
push:
branches:
- master
paths:
- doc/**
- .github/**
name: Deploy documentation
jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- name: Checkout website repository
uses: actions/checkout@v3.0.2
with:
repository: gz/bespin-benchmarks
path: gh-pages
ssh-key: ${{ secrets.WEBSITE_DEPLOY_SSH_KEY }}
- run: |
source ~/.cargo/env
cargo install mdbook --no-default-features --features search
cd doc
mdbook build -d ../book
cd ..
cd gh-pages
rm -rf ./book
mv ../book ./
git config user.name bespin-ci
git config user.email noreply@nrkernel.systems
git add .
git commit -a -m "Added documentation." || true
git push origin master || true
cd ..
rm -rf gh-pages/ book/