Drops oxigraph.org python doc updating

Let's only use readthedocs.org now
pull/266/head
Tpt 2 years ago committed by Thomas Tanon
parent 2fcc052ecd
commit 08612b870a
  1. 34
      .github/workflows/artifacts.yml
  2. 37
      .github/workflows/release.yml

@ -10,40 +10,6 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
python_doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: rustup update
- uses: actions/setup-python@v4
with:
python-version: 3.8
- run: python -m venv venv
working-directory: ./python
- run: source venv/bin/activate && pip install --upgrade -r requirements.dev.txt
working-directory: ./python
- run: source venv/bin/activate && maturin develop
working-directory: ./python
- 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@v3
with:
repository: oxigraph/oxigraph.github.io
path: website
token: ${{ secrets.FULL_ACCESS_TOKEN }}
- run: rm -rf ./website/pyoxigraph/latest && mkdir -p ./website/pyoxigraph/latest && 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 diff-index --quiet HEAD || git commit -m "Updates pyoxigraph documentation"
git push
working-directory: ./website
binary_linux: binary_linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

@ -189,43 +189,6 @@ jobs:
with: with:
files: js/*.tgz files: js/*.tgz
publish_python_doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: rustup update
- uses: actions/setup-python@v4
with:
python-version: 3.8
- run: python -m venv venv
working-directory: ./python
- run: source venv/bin/activate && pip install --upgrade -r requirements.dev.txt
working-directory: ./python
- run: source venv/bin/activate && maturin develop
working-directory: ./python
- 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@v3
with:
repository: oxigraph/oxigraph.github.io
path: website
token: ${{ secrets.FULL_ACCESS_TOKEN }}
- run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
- run: rm -rf ./website/pyoxigraph/stable && mkdir -p ./website/pyoxigraph/stable && cp -r ./python/docs/build/html/* ./website/pyoxigraph/stable/
if: "!contains('-', github.event.release.tag_name)"
- run: mkdir -p ./website/pyoxigraph/$RELEASE_VERSION && cp -r ./python/docs/build/html/* ./website/pyoxigraph/$RELEASE_VERSION/
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git diff-index --quiet HEAD || git commit -m "Updates pyoxigraph documentation"
git push
working-directory: ./website
publish_full_archive: publish_full_archive:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

Loading…
Cancel
Save