-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
48 lines (34 loc) · 1.15 KB
/
Copy pathentrypoint.sh
File metadata and controls
48 lines (34 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh -l
TOKEN=$1
mkdir ${HOME}/.local
mkdir ${HOME}/.local/bin
PATH="${PATH}:${HOME}./local:${HOME}/.local/bin"
if [ -d ./thesdk_template ]; then
rm -rf ./thesdk_template
fi
git clone https://github.com/TheSystemDevelopmentKit/thesdk_template.git
PYTHONPATH="$(pwd)/thesdk_template/Entities"
export PYTHONPATH
cd ./thesdk_template
git checkout v1.8_RC
./configure
sed -i 's#\(url = \)\(git@\)\(.*\)\(:\)\(.*$\)#\1https://\3/\5#g' .gitmodules && git submodule sync && git submodule update --init
./pip3userinstall.sh
cd ./doc/docstrings
make html
git clone https://github.com/TheSystemDevelopmentKit/docs.git
cd docs && git checkout main && git pull
cp -rp ../build/html/* ./
git add -A
git config --global user.name "ecdbot"
git config --global user.email "${GITHUB_ACTOR}@noreply.github.com"
git commit -m"Update docs"
git remote set-url origin "https://x-access-token:${TOKEN}@github.com/TheSystemDevelopmentKit/docs.git"
#echo "Actor ${GITHUB_ACTOR}"
echo "Actor ecdbot"
echo "Pushing to https://x-access-token:${TOKEN}@github.com/TheSystemDevelopmentKit/docs.git"
git push
OUT="Success"
echo $OUT
#echo "::set-output name=outstring::$OUT"
exit 0