From c539851277ef5186486452a5ac0a02e6090d22fe Mon Sep 17 00:00:00 2001 From: Tpt Date: Sat, 8 Aug 2020 17:20:22 +0200 Subject: [PATCH] CI: Automatically build pyoxigraph documentation --- .github/workflows/build.yml | 14 ++++++++++++++ .readthedocs.yml | 8 -------- 2 files changed, 14 insertions(+), 8 deletions(-) delete mode 100644 .readthedocs.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 057a9045..93715d7d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,3 +58,17 @@ jobs: working-directory: ./python/tests - run: source ../venv/bin/activate && sphinx-build -M doctest . build working-directory: ./python/docs + - run: source ../venv/bin/activate && sphinx-build -M html . build + working-directory: ./python/docs + - uses: actions/checkout@v2 + with: + repository: oxigraph/oxigraph.github.io + path: website + - run: cp -r ./python/docs/build/html website/pyoxigraph/latest/ + - run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "Updates pyoxigraph documentation" + git push + working-directory: ./website diff --git a/.readthedocs.yml b/.readthedocs.yml deleted file mode 100644 index da00c0c2..00000000 --- a/.readthedocs.yml +++ /dev/null @@ -1,8 +0,0 @@ -version: 2 -python: - version: 3.7 - install: - - method: pip - path: python -sphinx: - configuration: python/docs/conf.py \ No newline at end of file