mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-07 22:27:11 +02:00
fix(v1): fix v1 site deploy issues (#4395)
* Fix v1 CircleCI site deploy * Attempt to fix the v1 site deploy
This commit is contained in:
parent
c32d8bd116
commit
dde977ff86
2 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@ jobs:
|
|||
name: Configure GitHub Bot
|
||||
# Do not do this if we don't have the right org (facebook), or if this is just a pull request
|
||||
command: |
|
||||
if [[ $CIRCLE_PROJECT_USERNAME == "facebook" && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
|
||||
if [[ $CIRCLE_PROJECT_USERNAME == "facebook" && -z $CIRCLE_PR_USERNAME ]]; then
|
||||
git config --global user.email "docusaurus-bot@users.noreply.github.com"
|
||||
git config --global user.name "Website Deployment Script"
|
||||
echo "machine github.com login docusaurus-bot password $DOCUSAURUS_PUBLISH_TOKEN" > ~/.netrc
|
||||
|
@ -78,9 +78,9 @@ jobs:
|
|||
name: Deploy v1 Website
|
||||
# Skip the deploy if we don't have the right org (facebook), or if this is just a pull request
|
||||
command: |
|
||||
if ! git diff-tree --no-commit-id --name-only -r HEAD | grep -E "(^docs\/.*)|(docusaurus-1\.x\/.*)|(website-1\.x\/.*)"; then
|
||||
if ! git diff-tree --no-commit-id --name-only -r HEAD | grep -E "(docusaurus-1\.x\/.*)|(website-1\.x\/.*)"; then
|
||||
echo "Skipping deploy. No relevant v1 website files have changed"
|
||||
elif [[ $CIRCLE_PROJECT_USERNAME == "facebook" && -z $CI_PULL_REQUEST && -z $CIRCLE_PR_USERNAME ]]; then
|
||||
elif [[ $CIRCLE_PROJECT_USERNAME == "facebook" && -z $CIRCLE_PR_USERNAME ]]; then
|
||||
echo "Deploying website v1..."
|
||||
cd website-1.x
|
||||
|
||||
|
|
|
@ -95,4 +95,4 @@ This feature has not been an easy one, and we would like to thank everyone that
|
|||
|
||||
Thanks for reading.
|
||||
|
||||
🙏 And please, add your brand new i18n sites to our [showcase page](https://v2.docusaurus.io/showcase). We accept any Docusaurus site here, and we are working on a [redesign](https://github.com/facebook/docusaurus/issues/4238) allowing you to filter sites by features.
|
||||
🙏 And please, add your brand new i18n sites to our [showcase page](https://v2.docusaurus.io/showcase). We accept any polished Docusaurus site here, and we are working on a [redesign](https://github.com/facebook/docusaurus/issues/4238) allowing you to filter sites by features.
|
||||
|
|
Loading…
Add table
Reference in a new issue