|
|
|
@ -189,43 +189,6 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
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: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
steps: |
|
|
|
|