Sha256: 3c07dc198a0b7286098b06e3ebf365d15ff367fb5520ce0c6aa2569d2d3c90c5

Contents?: true

Size: 972 Bytes

Versions: 11

Compression:

Stored size: 972 Bytes

Contents

#!/bin/bash
# exit with nonzero exit code if anything fails
set -e

# clear and re-create the out directory
rm -rf doc || exit 0;
mkdir doc;

# build documentation
bundle exec rake documentation

# go to the out directory and create a *new* Git repo
cd doc
git init

# inside this git repo we'll pretend to be a new user
git config user.name "Circle CI"
git config user.email "build-documentation@auth0.com"

# The first and only commit to this new Git repo contains all the
# files present with the commit message "Deploy to GitHub Pages".
git add .
git commit -m "Deploy to GitHub Pages"

# Force push from the current repo's master branch to the remote
# repo's gh-pages branch. (All previous history on the gh-pages branch
# will be lost, since we are overwriting it.) We redirect any output to
# /dev/null to hide any sensitive credential data that might otherwise be exposed.
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
auth0-4.17.1 deploy_documentation.sh
auth0-4.17.0 deploy_documentation.sh
auth0-4.16.0 deploy_documentation.sh
auth0-4.15.0 deploy_documentation.sh
auth0-4.14.0 deploy_documentation.sh
auth0-4.13.0 deploy_documentation.sh
auth0-4.12.0 deploy_documentation.sh
auth0-4.11.0 deploy_documentation.sh
auth0-4.10.0 deploy_documentation.sh
auth0-4.9.0 deploy_documentation.sh
auth0-4.8.0 deploy_documentation.sh