forked from nnstreamer/nnstreamer
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (59 loc) · 2.08 KB
/
publish_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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Publish docs
on:
schedule:
# 04:30 AM (KST) Mon-Fri
- cron: "30 19 * * 0-4"
workflow_dispatch:
jobs:
generate_hotdoc:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install packages for hotdoc
run: |
sudo apt-get install python3-dev libxml2-dev libxslt1-dev cmake libyaml-dev libclang-dev llvm-dev libglib2.0-dev libjson-glib-dev flex
python -m pip install --upgrade pip
pip install hotdoc
- name: Generate doc using hotdoc
run: |
bash Documentation/hotdoc/gen-hotdoc.sh
- name: get date
id: get-date
run: |
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Update github.io
uses: ./.github/actions/gitpush
with:
source: ${{ github.workspace }}/Documentation/NNStreamer-doc/html/*
dest: ./
message: "${{ steps.get-date.outputs.date }} : Update nnstreamer.github.io."
taos_account: ${{ secrets.TAOS_ACCOUNT }}
taos_account_token: ${{ secrets.TAOS_ACCOUNT_TOKEN }}
generate_doxybook:
# reference: https://github.com/nnstreamer/TAOS-CI/tree/main/ci/doxybook
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install packages for doxygen
run: sudo apt-get install doxygen graphviz texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
- name: Generate doxygen
run: |
doxygen .github/workflows/static.check.scripts/Doxyfile.prj
pushd latex
make -j`nproc`
mv refman.pdf nnstreamer-book.pdf
popd
- name: get date
id: get-date
run: |
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Release daily build result to release.nnstreamer.com
uses: ./.github/actions/s3_upload
with:
source: ${{ github.workspace }}/latex/nnstreamer-book.pdf
dest: doc/nnstreamer-book.pdf
s3_id: ${{ secrets.AWS_S3_ACCESS_KEY_ID }}
s3_key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}