diff --git a/.github/workflows/upload-python-docs.yml b/.github/workflows/upload-python-docs.yml index c8f7854dc..6e2b27c1f 100644 --- a/.github/workflows/upload-python-docs.yml +++ b/.github/workflows/upload-python-docs.yml @@ -14,13 +14,15 @@ jobs: with: show-progress: false fetch-depth: 0 # Fetch history to calculate VCS version number. + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Build Python documentation - run: scripts/build-python-docs.sh + run: nix build .#python-docs - name: Upload to py.delta.chat uses: up9cloud/action-rsync@v1.3 env: USER: delta KEY: ${{ secrets.CODESPEAK_KEY }} HOST: "lists.codespeak.net" - SOURCE: "dist/html/" + SOURCE: "result/html/" TARGET: "/home/delta/build/master" diff --git a/scripts/README.md b/scripts/README.md index 2c8a06721..dab3f20c3 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -37,8 +37,6 @@ and an own build machine. - `android-rpc-server.sh` compiles binaries of `deltachat-rpc-server` using Android NDK. -- `build-python-docs.sh` builds Python documentation into `dist/html/`. - ## Triggering runs on the build machine locally (fast!) There is experimental support for triggering a remote Python or Rust test run diff --git a/scripts/build-python-docs.sh b/scripts/build-python-docs.sh deleted file mode 100755 index 92bd74706..000000000 --- a/scripts/build-python-docs.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -export DCC_RS_TARGET=debug -export DCC_RS_DEV="$PWD" -cargo build -p deltachat_ffi --features jsonrpc - -python3 -m venv venv -venv/bin/pip install ./python -venv/bin/pip install ./deltachat-rpc-client -venv/bin/pip install sphinx breathe sphinx_rtd_theme -venv/bin/sphinx-build -b html -a python/doc/ dist/html