Skip to content

Commit

Permalink
temporary test job
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Dec 7, 2024
1 parent a8d28ef commit 5f0a673
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test_doc_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: "TEMP"

on:
push:
branches:
- "main"

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.DOC_HOST }}
REMOTE_USER: ${{ secrets.DOC_USER }}
SOURCE: "dist/assembled_doc"
TARGET: "biotite"

0 comments on commit 5f0a673

Please sign in to comment.