Skip to content

Commit

Permalink
fixed deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoNicolle committed May 16, 2018
1 parent ba30d57 commit ddd6a20
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/deploy-doc.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh

holesInRoot="$(pwd)"
echo $holesInRoot"/doc.generated/"
mkdir /tmp/holes-in-deploy/
cd /tmp/holes-in-deploy/
git clone [email protected]:wanadev/holes-in.git
Expand All @@ -10,6 +9,7 @@ git checkout gh-pages
rm -rf ./*
cp -R $holesInRoot"/doc.generated/." .

git commit -am $0
git add -A
git commit -m $0
git push
rm -rf /tmp/holes-in-deploy/
14 changes: 14 additions & 0 deletions tools/publish-doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

holesInRoot="$(pwd)"
mkdir /tmp/holes-in-deploy/
cd /tmp/holes-in-deploy/
git clone [email protected]:wanadev/holes-in.git
cd holes-in/
git checkout gh-pages
rm -rf ./*
cp -R $holesInRoot"/doc.generated/." .

git commit -am $0
git push
rm -rf /tmp/holes-in-deploy/

0 comments on commit ddd6a20

Please sign in to comment.