Merge pull request #7378 from obrakmann/fix_wiki_deployment

Switch wiki deployment to the orabot user with SSH auth
This commit is contained in:
Paul Chote
2015-02-12 14:43:19 +00:00
3 changed files with 16 additions and 1 deletions

BIN
packaging/ssh.enc Normal file

Binary file not shown.

View File

@@ -1,5 +1,7 @@
#!/bin/bash
echo "Branch is $1"
case "$1" in
"bleed")
exit
@@ -17,6 +19,13 @@ case "$1" in
esac
echo "Updating https://github.com/OpenRA/OpenRA/wiki/"
SSH_KEY="$HOME"/.ssh/id_rsa
mkdir -p "$(dirname "$SSH_KEY")"
openssl aes-256-cbc -k "$KEY" -in ssh.enc -d -out "$SSH_KEY"
chmod 0600 "$SSH_KEY"
rm -rf $HOME/openra-wiki
git clone git@github.com:OpenRA/OpenRA.wiki.git $HOME/openra-wiki
cp -fr ../DOCUMENTATION.md "${HOME}/openra-wiki/Traits${TAG}.md"
@@ -27,6 +36,8 @@ git config --local user.email "orabot@users.noreply.github.com"
git config --local user.name "orabot"
git add "Traits${TAG}.md"
git add "Lua API${TAG}.md"
git commit -m "Update trait and scripting documentation for branch $1"
git commit -m "Update trait and scripting documentation for branch $1" &&
git push origin master
popd
shred -u "$SSH_KEY"