ci: use BuildTheDocs

This commit is contained in:
umarcor 2021-11-28 09:50:07 +01:00
parent 50c395bef3
commit 39c8721e33
2 changed files with 26 additions and 0 deletions

6
.btd.yml Normal file
View File

@ -0,0 +1,6 @@
input: doc
output: _build
requirements: requirements.txt
target: gh-pages
formats: [ html ]
theme: https://codeload.github.com/buildthedocs/sphinx.theme/tar.gz/v1

View File

@ -8,6 +8,26 @@ on:
jobs:
doc:
runs-on: ubuntu-latest
name: '📓 Docs'
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v2
- name: '📓 BuildTheDocs (BTD)'
uses: buildthedocs/btd@v0
with:
token: ${{ github.token }}
skip-deploy: ${{ github.event_name == 'pull_request' }}
- name: '📤 Upload artifact: HTML'
uses: actions/upload-artifact@v2
with:
path: doc/_build/html
lin-build:
strategy:
fail-fast: false