diff --git a/.circleci/config.yml b/.circleci/config.yml index 047a94a32e..8e324dcb16 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -100,7 +100,7 @@ jobs: # done # publish - GIT_USER=docusaurus-bot USE_SSH=false yarn run publish-gh-pages + GIT_USER=docusaurus-bot USE_SSH=false FORCE_DEPLOY=true yarn run publish-gh-pages else echo "Skipping deploy." fi diff --git a/packages/docusaurus-1.x/lib/publish-gh-pages.js b/packages/docusaurus-1.x/lib/publish-gh-pages.js index 221f1a9fa6..d3cb33451e 100755 --- a/packages/docusaurus-1.x/lib/publish-gh-pages.js +++ b/packages/docusaurus-1.x/lib/publish-gh-pages.js @@ -41,6 +41,10 @@ const GITHUB_HOST = process.env.GITHUB_HOST || siteConfig.githubHost || GITHUB_DOMAIN; const CUSTOM_COMMIT_MESSAGE = process.env.CUSTOM_COMMIT_MESSAGE; +// Mostly added to unlock our own Docusaurus v1 site deploy... +// See https://github.com/facebook/docusaurus/issues/4394 +const FORCE_DEPLOY = process.env.FORCE_DEPLOY; + if (!ORGANIZATION_NAME) { shell.echo( "Missing project organization name. Did you forget to define 'organizationName' in siteConfig.js? You may also export it via the ORGANIZATION_NAME environment variable.", @@ -69,7 +73,9 @@ if (USE_SSH === 'true') { remoteBranch = `https://${GIT_USER}@${GITHUB_HOST}/${ORGANIZATION_NAME}/${PROJECT_NAME}.git`; } -if (IS_PULL_REQUEST) { +if (FORCE_DEPLOY === 'true') { + shell.echo('Force deploy used!'); +} else if (IS_PULL_REQUEST) { shell.echo('Skipping deploy on a pull request'); shell.exit(0); } diff --git a/website-1.x/blog/2021-03-09-releasing-docusaurus-i18n.md b/website-1.x/blog/2021-03-09-releasing-docusaurus-i18n.md index 678e4dc13d..331e598251 100644 --- a/website-1.x/blog/2021-03-09-releasing-docusaurus-i18n.md +++ b/website-1.x/blog/2021-03-09-releasing-docusaurus-i18n.md @@ -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 decently 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. +🙏 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.