Skip to content

Commit b7a25a7

Browse files
committed
Avoid recloning the repo when generating docs
1 parent dac456c commit b7a25a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ carthage:
2424
set -o pipefail && carthage build --no-skip-current --verbose | bundle exec xcpretty
2525

2626
docs:
27-
rm -rfv docs
28-
git clone -b gh-pages --single-branch https://github.com/polydice/ICInputAccessory.git docs
27+
test -d docs || git clone -b gh-pages --single-branch https://github.com/polydice/ICInputAccessory.git docs
28+
cd docs && git fetch origin gh-pages && git clean -f -d
29+
cd docs && git checkout gh-pages && git reset --hard origin/gh-pages
2930
bundle exec jazzy --config .jazzy.yml

0 commit comments

Comments
 (0)