Github actions to build page when push
This commit is contained in:
parent
23889da183
commit
37f13cb294
|
@ -0,0 +1,29 @@
|
|||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, dev]
|
||||
|
||||
jobs:
|
||||
deploy-doc:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install dependencies
|
||||
run: pip install -r requirements.txt
|
||||
|
||||
- name: build doc
|
||||
run: make html
|
||||
|
||||
- name: create .nojekyll
|
||||
run: touch build/html/.nojekyll
|
||||
|
||||
- name: Push to gh-pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./build/html
|
|
@ -0,0 +1,28 @@
|
|||
alabaster==0.7.12
|
||||
Babel==2.9.1
|
||||
certifi==2021.5.30
|
||||
charset-normalizer==2.0.4
|
||||
docutils==0.16
|
||||
idna==3.2
|
||||
imagesize==1.2.0
|
||||
jieba==0.42.1
|
||||
Jinja2==3.0.1
|
||||
MarkupSafe==2.0.1
|
||||
packaging==21.0
|
||||
Pygments==2.10.0
|
||||
pyparsing==2.4.7
|
||||
pytz==2021.1
|
||||
requests==2.26.0
|
||||
snowballstemmer==2.1.0
|
||||
Sphinx==4.1.2
|
||||
sphinx-comments==0.0.3
|
||||
sphinx-rtd-theme==0.5.2
|
||||
sphinx-tabs==3.2.0
|
||||
sphinxcontrib-applehelp==1.0.2
|
||||
sphinxcontrib-devhelp==1.0.2
|
||||
sphinxcontrib-htmlhelp==2.0.0
|
||||
sphinxcontrib-jsmath==1.0.1
|
||||
sphinxcontrib-qthelp==1.0.3
|
||||
sphinxcontrib-serializinghtml==1.1.5
|
||||
urllib3==1.26.6
|
||||
furo==2021.8.31
|
Loading…
Reference in New Issue