-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (38 loc) · 1.05 KB
/
main.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
name: Readthedoc
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
# Runs at 16:00 UTC (BeiJing 00:00) on the 1st of every month
schedule:
- cron: '0 16 1 * *'
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: community_readthedoc
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install Tools
shell: bash
run: |
sudo apt-get update
sudo python -m pip install --upgrade pip -qq
sudo apt-get install zip
pip install sphinx
pip install sphinx-autobuild
pip install sphinx_rtd_theme
pip install recommonmark
pip install sphinx_markdown_tables
pip install requests -qq
- name: build Compile
shell: bash
run: |
make html
zip -r -q -o readthedoc.zip build/
ls -la