Files
scylladb/docs/_utils/deploy.sh
dgarcia360 8d51482ffe docs: moved latest_version to conf.py
Related issues: scylladb/sphinx-scylladb-theme#87

All the variables related to the multiversion extension are now defined in conf.py instead of using the GitHub Actions file.

How to test this PR
Run make multiversionpreview on docs folder. When you open https://0.0.0.0:5500, the browser should render the documentation site.

Closes #7957
2021-07-20 14:31:46 +03:00

19 lines
449 B
Bash
Executable File

#!/usr/bin/env bash
# Copy contents
mkdir gh-pages
cp -r ./docs/_build/dirhtml/. gh-pages
# Create gh-pages branch
cd gh-pages
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