monaco-editor/build/publish-website.sh

15 lines
452 B
Bash
Raw Normal View History

2018-11-09 19:51:43 +08:00
#!/usr/bin/env bash
COMMITTER_USER_NAME="$(git log --format='%an' -1)"
COMMITTER_EMAIL="$(git log --format='%ae' -1)"
2018-11-09 19:59:11 +08:00
cd ../monaco-editor-website
git init
2018-11-09 19:51:43 +08:00
git config user.name "${COMMITTER_USER_NAME}"
git config user.email "${COMMITTER_EMAIL}"
2018-11-10 00:20:54 +08:00
git remote add origin "https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/Microsoft/monaco-editor.git"
2018-11-09 19:51:43 +08:00
git checkout -b gh-pages
git add .
git commit -m "Publish website"
2018-11-10 00:04:10 +08:00
git push origin gh-pages --force