From ece3332c9a710b0b56c40449e58abe1e2ba85765 Mon Sep 17 00:00:00 2001 From: Garvys Date: Mon, 9 May 2022 21:18:19 +0200 Subject: [PATCH] Add publish python doc to CI --- .github/workflows/native.yml | 14 ++++++++++++++ .readthedocs.yaml | 6 ------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/native.yml b/.github/workflows/native.yml index 261062368..2aebb1601 100644 --- a/.github/workflows/native.yml +++ b/.github/workflows/native.yml @@ -233,6 +233,20 @@ jobs: - name: Test rustfst-python run: python -m pytest -s --cache-clear --disable-warnings rustfst-python + publish-python-doc: + name: Publish rustfst-python's doc +# needs: [ rust-doc, rust-tests, rustfst-python-bench, rustfst-python ] + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/readthedocs' + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + with: + python-version: ${{ env.PYTHON_VERSION }} + - run: pip install -r requirements-mkdocs.txt + - run: mkdocs build + + publish-rust-crate: name: Publish Rust Crate to Crates.io needs: [ rust-doc, rust-tests, rustfst-python-bench, rustfst-python ] diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d9c96f754..c0a11a7d0 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -14,15 +14,9 @@ build: # Build documentation in the docs/ directory with Sphinx -#sphinx: -# configuration: rustfst-python/docs/source/conf.py mkdocs: configuration: mkdocs.yml -# If using Sphinx, optionally build your docs in additional formats such as PDF -# formats: -# - pdf - # Optionally declare the Python requirements required to build your docs python: install: