generated from itu-auv/protocol-template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1021 Bytes
/
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
name: Docs Compile
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Protobuf & NanoPB
run: |
sudo apt-get -y install protobuf-compiler protobuf-c-compiler
sudo apt-get -y install python3-pip
pip3 install nanopb
wget https://github.com/pseudomuto/protoc-gen-doc/releases/download/v1.5.0/protoc-gen-doc-1.5.0.linux-amd64.go1.16.6.tar.gz
tar -xvf protoc-gen-doc-1.5.0.linux-amd64.go1.16.6.tar.gz
sudo cp protoc-gen-doc-1.5.0.linux-amd64.go1.16.6/protoc-gen-doc /usr/bin/
rm -rf protoc-gen-doc-1.5.0.linux-amd64.go1.16.6*
- name: Generate
run: |
mkdir python
mkdir c
mkdir cpp
mkdir nanopb
mkdir docs
./generate.sh
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs