CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
travis-gh-pages24 linesDownload Raw Back to scripts
1#!/usr/bin/env bash2 3set -e4 5if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAVIS_JOB_NUMBER =~ ".3" ]]; then6  git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$|travis-gh-pages$' && {7    rm -rf ../gh-pages8    git clone -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/ajv-validator/ajv.git ../gh-pages9    mkdir -p ../gh-pages/_source10    cp *.md ../gh-pages/_source11    cp LICENSE ../gh-pages/_source12    currentDir=$(pwd)13    cd ../gh-pages14    $currentDir/node_modules/.bin/gh-pages-generator15    # remove logo from README16    sed -i -E "s/<img[^>]+ajv_logo[^>]+>//" index.md17    git config user.email "$GIT_USER_EMAIL"18    git config user.name "$GIT_USER_NAME"19    git add .20    git commit -am "updated by travis build #$TRAVIS_BUILD_NUMBER"21    git push --quiet origin gh-pages > /dev/null 2>&122  }23fi24 
basant307/AI_Governance_Project · CoolFace