Skip to content

Commit

Permalink
docs: update theme automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarcia360 authored and zimnx committed Nov 16, 2020
1 parent 10f5957 commit 5908083
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 65 deletions.
15 changes: 10 additions & 5 deletions docs/_utils/deploy.sh
Expand Up @@ -5,16 +5,21 @@

set -eu -o pipefail

# Clone repo
git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" --branch gh-pages --single-branch gh-pages
cp -r docs/_build/dirhtml/* gh-pages
# Redirect index to latest version
# Copy contents
mkdir gh-pages
cp -r ./docs/_build/dirhtml/* gh-pages
./docs/_utils/redirect.sh > gh-pages/index.html
# Deploy

# Create gh-pages branch
cd gh-pages
touch .nojekyll
git init
git config --local user.email "action@scylladb.com"
git config --local user.name "GitHub Action"
git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git checkout -b gh-pages

# Deploy
git add .
git commit -m "Publish docs" || true
git push origin gh-pages --force
1 change: 1 addition & 0 deletions docs/_utils/setup.sh
Expand Up @@ -13,3 +13,4 @@ fi
which python3 || { echo "Failed to find python3. Try installing Python for your operative system: https://www.python.org/downloads/" && exit 1; }
which poetry || curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 - && source ${HOME}/.poetry/env
poetry install
poetry update

0 comments on commit 5908083

Please sign in to comment.