mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Find out remote address
This commit is contained in:
parent
6f2dc28949
commit
58251db14d
2 changed files with 9 additions and 8 deletions
|
|
@ -3,12 +3,14 @@
|
||||||
COMMITTER_USER_NAME="$(git log --format='%an' -1)"
|
COMMITTER_USER_NAME="$(git log --format='%an' -1)"
|
||||||
COMMITTER_EMAIL="$(git log --format='%ae' -1)"
|
COMMITTER_EMAIL="$(git log --format='%ae' -1)"
|
||||||
|
|
||||||
|
git remote -v
|
||||||
|
|
||||||
cd ../monaco-editor-website
|
cd ../monaco-editor-website
|
||||||
git init
|
git init
|
||||||
git config user.name "${COMMITTER_USER_NAME}"
|
git config user.name "${COMMITTER_USER_NAME}"
|
||||||
git config user.email "${COMMITTER_EMAIL}"
|
git config user.email "${COMMITTER_EMAIL}"
|
||||||
git remote add origin "https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/Microsoft/monaco-editor.git"
|
# git remote add origin "https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/microsoft/monaco-editor.git"
|
||||||
git checkout -b gh-pages
|
# git checkout -b gh-pages
|
||||||
git add .
|
# git add .
|
||||||
git commit -m "Publish website"
|
# git commit -m "Publish website"
|
||||||
git push origin gh-pages --force
|
# git push origin gh-pages --force
|
||||||
5
.github/workflows/website.yml
vendored
5
.github/workflows/website.yml
vendored
|
|
@ -29,10 +29,9 @@ jobs:
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Build website
|
- name: Build website
|
||||||
run: npm run build-website-ci
|
run: npm run build-website
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: git push origin gh-pages --force
|
run: ./.github/workflows/publish-website.sh
|
||||||
working-directory: ../monaco-editor-website
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue