Fix website generation with staticsite master
This commit is contained in:
parent
d287122596
commit
0306eae0e1
1 changed files with 7 additions and 6 deletions
13
.github/deploy.sh
vendored
13
.github/deploy.sh
vendored
|
@ -2,11 +2,13 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
P="$(mktemp -d)"
|
P="$(mktemp -d)"
|
||||||
|
mkdir "$P/git" "$P/out"
|
||||||
|
|
||||||
if [ "$encrypted_1671ba5f199a_key" ]
|
if [ "$encrypted_1671ba5f199a_key" ]
|
||||||
then
|
then
|
||||||
eval "$(ssh-agent -s)"
|
eval "$(ssh-agent -s)"
|
||||||
openssl aes-256-cbc -K $encrypted_1671ba5f199a_key -iv $encrypted_1671ba5f199a_iv \
|
openssl aes-256-cbc -K "$encrypted_1671ba5f199a_key" \
|
||||||
|
-iv "$encrypted_1671ba5f199a_iv" \
|
||||||
-in .github/deploy_key.enc -out .github/deploy_key -d
|
-in .github/deploy_key.enc -out .github/deploy_key -d
|
||||||
chmod 600 .github/deploy_key
|
chmod 600 .github/deploy_key
|
||||||
ssh-add .github/deploy_key
|
ssh-add .github/deploy_key
|
||||||
|
@ -14,17 +16,16 @@ then
|
||||||
pip install git+https://github.com/spanezz/staticsite.git
|
pip install git+https://github.com/spanezz/staticsite.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -d $P ] && rm -Rfv $P
|
git clone --depth=10 --branch=gh-pages "git@github.com:${TRAVIS_REPO_SLUG}.git" "$P/git"
|
||||||
git clone --depth=10 --branch=gh-pages git@github.com:${TRAVIS_REPO_SLUG}.git $P
|
|
||||||
|
|
||||||
rm -Rfv dosage.egg-info
|
rm -Rfv dosage.egg-info
|
||||||
ssite build
|
ssite build --output "$P/out"
|
||||||
|
|
||||||
rsync -r --del --verbose --exclude tests \
|
rsync -r --del --verbose --exclude tests \
|
||||||
--exclude dosagelib --exclude dist --exclude build --exclude scripts \
|
--exclude dosagelib --exclude dist --exclude build --exclude scripts \
|
||||||
../*.site.out/* $P/
|
"$P/out/"* "$P/git"
|
||||||
|
|
||||||
cd $P
|
cd "$P/git"
|
||||||
|
|
||||||
git config user.email 'nobody@23.gs'
|
git config user.email 'nobody@23.gs'
|
||||||
git config user.name 'Travis-CI Website Bot'
|
git config user.name 'Travis-CI Website Bot'
|
||||||
|
|
Loading…
Reference in a new issue