From 04e2ae2fcc3f0d4bcf5335c000d1a1e36de9e68a Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Mon, 5 Oct 2020 11:19:33 +0000 Subject: [PATCH] Deploy website Deploy website version based on 6637e1dc821c05dd592cc6ed55d5df373e52c424 --- docs/en/1.14.5/publishing.html | 33 ++++++++++++++++++++++++- docs/en/1.14.5/publishing/index.html | 33 ++++++++++++++++++++++++- docs/en/next/publishing.html | 33 ++++++++++++++++++++++++- docs/en/next/publishing/index.html | 33 ++++++++++++++++++++++++- docs/en/publishing.html | 33 ++++++++++++++++++++++++- docs/en/publishing/index.html | 33 ++++++++++++++++++++++++- docs/fr/1.14.5/publishing.html | 33 ++++++++++++++++++++++++- docs/fr/1.14.5/publishing/index.html | 33 ++++++++++++++++++++++++- docs/fr/next/publishing.html | 33 ++++++++++++++++++++++++- docs/fr/next/publishing/index.html | 33 ++++++++++++++++++++++++- docs/fr/publishing.html | 33 ++++++++++++++++++++++++- docs/fr/publishing/index.html | 33 ++++++++++++++++++++++++- docs/ko/1.14.5/publishing.html | 33 ++++++++++++++++++++++++- docs/ko/1.14.5/publishing/index.html | 33 ++++++++++++++++++++++++- docs/ko/next/publishing.html | 33 ++++++++++++++++++++++++- docs/ko/next/publishing/index.html | 33 ++++++++++++++++++++++++- docs/ko/publishing.html | 33 ++++++++++++++++++++++++- docs/ko/publishing/index.html | 33 ++++++++++++++++++++++++- docs/pt-BR/1.14.5/publishing.html | 33 ++++++++++++++++++++++++- docs/pt-BR/1.14.5/publishing/index.html | 33 ++++++++++++++++++++++++- docs/pt-BR/next/publishing.html | 33 ++++++++++++++++++++++++- docs/pt-BR/next/publishing/index.html | 33 ++++++++++++++++++++++++- docs/pt-BR/publishing.html | 33 ++++++++++++++++++++++++- docs/pt-BR/publishing/index.html | 33 ++++++++++++++++++++++++- docs/ro/1.14.5/publishing.html | 33 ++++++++++++++++++++++++- docs/ro/1.14.5/publishing/index.html | 33 ++++++++++++++++++++++++- docs/ro/next/publishing.html | 33 ++++++++++++++++++++++++- docs/ro/next/publishing/index.html | 33 ++++++++++++++++++++++++- docs/ro/publishing.html | 33 ++++++++++++++++++++++++- docs/ro/publishing/index.html | 33 ++++++++++++++++++++++++- docs/ru/1.14.5/publishing.html | 33 ++++++++++++++++++++++++- docs/ru/1.14.5/publishing/index.html | 33 ++++++++++++++++++++++++- docs/ru/next/publishing.html | 33 ++++++++++++++++++++++++- docs/ru/next/publishing/index.html | 33 ++++++++++++++++++++++++- docs/ru/publishing.html | 33 ++++++++++++++++++++++++- docs/ru/publishing/index.html | 33 ++++++++++++++++++++++++- docs/zh-CN/1.14.5/publishing.html | 33 ++++++++++++++++++++++++- docs/zh-CN/1.14.5/publishing/index.html | 33 ++++++++++++++++++++++++- docs/zh-CN/next/publishing.html | 33 ++++++++++++++++++++++++- docs/zh-CN/next/publishing/index.html | 33 ++++++++++++++++++++++++- docs/zh-CN/publishing.html | 33 ++++++++++++++++++++++++- docs/zh-CN/publishing/index.html | 33 ++++++++++++++++++++++++- 42 files changed, 1344 insertions(+), 42 deletions(-) diff --git a/docs/en/1.14.5/publishing.html b/docs/en/1.14.5/publishing.html index eb9659c8ba..bd8b48366c 100644 --- a/docs/en/1.14.5/publishing.html +++ b/docs/en/1.14.5/publishing.html @@ -335,6 +335,37 @@ GH_TOKEN: $(GH_TOKEN) displayName: 'yarn install and build' +

Using Drone

+
    +
  1. Create a new ssh key that will be the deploy key for your project.
  2. +
  3. Name your private and public keys to be specific and so that it does not overwrite your other ssh keys.
  4. +
  5. Go to https://github.com/USERNAME/REPO/settings/keys and add a new deploy key by pasting in our public key you just generated.
  6. +
  7. Open your Drone.io dashboard and login. The URL looks like https://cloud.drone.io/USERNAME/REPO.
  8. +
  9. Click on the repository, click on activate repository, and add a secret called git_deploy_private_key with your private key value that you just generated.
  10. +
  11. Create a .drone.yml on the root of your repository with below text.
  12. +
+
# .drone.yml
+kind: pipeline
+type: docker
+trigger:
+  event:
+    - tag
+- name: Website
+  image: node
+  commands:
+    - mkdir -p $HOME/.ssh
+    - ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts
+    - echo "$GITHUB_PRIVATE_KEY > $HOME/.ssh/id_rsa"
+    - chmod 0600 $HOME/.ssh/id_rsa
+    - cd website
+    - npm i
+    - npm run publish-gh-pages
+  environment:
+    USE_SSH: true
+    GIT_USER: $DRONE_COMMIT_AUTHOR
+    GITHUB_PRIVATE_KEY: git_deploy_private_key
+
+

Now, whenever you push a new tag to github, this trigger will start the drone ci job to publish your website.

Hosting on ZEIT Now

With ZEIT Now, you can deploy your site and connect it to GitHub or GitLab to automatically receive a new deployment every time you push a commit.

Hosting on Netlify

@@ -386,7 +417,7 @@

Alter your siteConfig.js to add a property 'githubHost' which represents the GitHub Enterprise hostname. Alternatively, set an environment variable GITHUB_HOST when executing the publish command.

-
Last updated on 7/24/2020 by Anshul Goyal
Creating your siteDocker