mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-14 04:46:34 +03:00
15 lines
345 B
Bash
15 lines
345 B
Bash
|
#!/bin/bash
|
||
|
set -o pipefail
|
||
|
(
|
||
|
set -e
|
||
|
set -x
|
||
|
cd demo
|
||
|
git init
|
||
|
git config user.name "Travis-CI"
|
||
|
git config user.email "travis@travis"
|
||
|
cp -r ../dist ./dist
|
||
|
git add .
|
||
|
git commit -m "Deployed to Github Pages"
|
||
|
git push --force "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
|
||
|
) 2>&1 | sed "s/${GH_TOKEN}/xxPASSxx/"
|