ci deploy: instructions for GitPython

pull/6417/head
Niklas Fiekas 2020-04-14 15:04:17 +02:00
parent 85cf2a4a54
commit 6ecf147d2b
1 changed files with 12 additions and 1 deletions

View File

@ -4,12 +4,22 @@ import sys
import os
import os.path
import pickle
import git
import requests
import shlex
import subprocess
import time
try:
import git
except ImportError:
print("Need GitPython:")
print("* Arch: pacman -S python-gitpython")
print("* Debian: apt install python3-git")
print("* Pip: pip install GitPython")
print("* Source: https://github.com/gitpython-developers/GitPython")
print()
raise
ASSETS_FILES = [
".github/workflows/assets.yml",
@ -36,6 +46,7 @@ ASSETS_BUILD_URL = "https://api.github.com/repos/ornicar/lila/actions/workflows/
SERVER_BUILD_URL = "https://api.github.com/repos/ornicar/lila/actions/workflows/server.yml/runs"
def asset_profile(ssh, *,
artifact_dir="/home/lichess-artifacts",
deploy_dir="/home/lichess-deploy",