From 39c8721e33dc89906e9aebd2db9f492de573f7e6 Mon Sep 17 00:00:00 2001 From: umarcor Date: Sun, 28 Nov 2021 09:50:07 +0100 Subject: [PATCH] ci: use BuildTheDocs --- .btd.yml | 6 ++++++ .github/workflows/Test.yml | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .btd.yml diff --git a/.btd.yml b/.btd.yml new file mode 100644 index 0000000..a748736 --- /dev/null +++ b/.btd.yml @@ -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 diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index 0391df3..6141c5e 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -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