-
Notifications
You must be signed in to change notification settings - Fork 132
47 lines (43 loc) · 1.33 KB
/
deploy-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
name: Build and deploy docs
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Clone ns-3
run: git clone https://gitlab.com/nsnam/ns-3-dev
- uses: actions/checkout@v2
with:
path: 'ns-3-dev/src/lorawan'
- name: Install dependencies needed to generate docs
run: |
sudo apt-get update
sudo apt-get install dia doxygen sphinx-doc sphinx-common python3-pydot texlive-full latexmk dvipng texlive-font-utils
sudo rm /etc/ImageMagick-*/policy.xml
- name: Build docs
run: |
cd ns-3-dev/
cp utils/.ns3rc ./
sed -i "s/all_modules/lorawan/" .ns3rc
sed -i "s/False/True/" .ns3rc
./ns3 configure
./ns3 docs all
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'docs/'
destination-github-username: 'signetlabdei'
destination-repository-name: 'lorawan-docs'
user-email: [email protected]
target-branch: master