This repository has been archived by the owner on May 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: This adds the config info that's needed to publish a website. I tested by running it locally and making sure the build ran. Closes #8 Reviewed By: BurntBrunch Differential Revision: D7290414 Pulled By: caabernathy fbshipit-source-id: a568ebad0401ba57462952ff0c8b07d69d6a9635
- Loading branch information
1 parent
f5bdadf
commit d5939ba
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: 2 | ||
jobs: | ||
deploy-website: | ||
docker: | ||
- image: circleci/node:7.10 | ||
|
||
working_directory: ~/profilo | ||
|
||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- dependencies-{{ .Branch }}-{{ checksum "website/yarn.lock" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- dependencies-{{ .Branch }}- | ||
|
||
- run: | ||
name: Install Docusaurus | ||
command: | | ||
cd website | ||
yarn --non-interactive --cache-folder ~/.cache/yarn | ||
- save_cache: | ||
paths: | ||
- website/node_modules | ||
- ~/.cache/yarn | ||
key: dependencies-{{ .Branch }}-{{ checksum "website/yarn.lock" }} | ||
|
||
- run: | ||
name: Configure GitHub Bot | ||
command: | | ||
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 $GITHUB_TOKEN" > ~/.netrc | ||
- deploy: | ||
name: Deploy Website | ||
command: | | ||
echo "Deploying website..." | ||
cd website && GIT_USER=docusaurus-bot USE_SSH=false yarn run publish-gh-pages | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d5939ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API.css