mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
27 lines
846 B
YAML
27 lines
846 B
YAML
name: Build & Deploy Documentation on py.delta.chat
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
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: nix build .#python-docs
|
|
- name: Upload to py.delta.chat
|
|
run: |
|
|
mkdir -p "$HOME/.ssh"
|
|
echo "${{ secrets.CODESPEAK_KEY }}" > "$HOME/.ssh/key"
|
|
chmod 600 "$HOME/.ssh/key"
|
|
rsync -avzh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/result/html/ "delta@lists.codespeak.net:/home/delta/build/master"
|