From d0a6602e41b9776faa2d095e3af17b8f2e940e1a Mon Sep 17 00:00:00 2001 From: Patrick Kunzmann Date: Mon, 2 Sep 2024 13:43:42 +0200 Subject: [PATCH] temporary test job --- .github/workflows/test_doc_deploy.yml | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test_doc_deploy.yml diff --git a/.github/workflows/test_doc_deploy.yml b/.github/workflows/test_doc_deploy.yml new file mode 100644 index 000000000..316e8c485 --- /dev/null +++ b/.github/workflows/test_doc_deploy.yml @@ -0,0 +1,38 @@ +--- +name: "TEMP" + +on: + push: + branches: + - "doc-upload" + +jobs: + upload-docs: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - name: Install dependencies for documentation upload + run: pip install requests + - uses: actions/checkout@v4 + - run: mkdir dist + - run: wget https://github.com/biotite-dev/biotite/releases/download/v1.0.1/doc.zip -O dist/doc.zip + - name: Unzip documentation + run: unzip dist/doc.zip -d build + - name: Assemble multi-version documentation + run: > + python .github/workflows/multiversion_docs.py + build/doc/_static/switcher.json + dist/assembled_doc + - name: Upload documentation to website + uses: easingthemes/ssh-deploy@v5.1.0 + with: + SSH_PRIVATE_KEY: ${{ secrets.DOCS_PRIVATE_KEY }} + REMOTE_HOST: ${{ secrets.DOCS_HOST }} + REMOTE_USER: ${{ secrets.DOCS_USER }} + SOURCE: "dist/assembled_doc" + TARGET: "html" + SCRIPT_BEFORE: "rm -r html/*"