mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-26 14:01:23 +01:00
merge completed... now to fix all the bugs...
This commit is contained in:
commit
87c4d80fbc
3472 changed files with 466748 additions and 6517 deletions
23
node_modules/ajv/scripts/travis-gh-pages
generated
vendored
Normal file
23
node_modules/ajv/scripts/travis-gh-pages
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then
|
||||
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$|travis-gh-pages$' && {
|
||||
rm -rf ../gh-pages
|
||||
git clone -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/ajv-validator/ajv.git ../gh-pages
|
||||
mkdir -p ../gh-pages/_source
|
||||
cp *.md ../gh-pages/_source
|
||||
cp LICENSE ../gh-pages/_source
|
||||
currentDir=$(pwd)
|
||||
cd ../gh-pages
|
||||
$currentDir/node_modules/.bin/gh-pages-generator
|
||||
# remove logo from README
|
||||
sed -i -E "s/<img[^>]+ajv_logo[^>]+>//" index.md
|
||||
git config user.email "$GIT_USER_EMAIL"
|
||||
git config user.name "$GIT_USER_NAME"
|
||||
git add .
|
||||
git commit -am "updated by travis build #$TRAVIS_BUILD_NUMBER"
|
||||
git push --quiet origin gh-pages > /dev/null 2>&1
|
||||
}
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue