Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

Add org to website config #8

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .circleci/config.yml
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

1 change: 1 addition & 0 deletions website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const siteConfig = {
url: 'https://facebookincubator.github.io' /* your website url */,
baseUrl: '/profilo/' /* base url for your project */,
projectName: 'profilo',
organizationName: "facebookincubator",
headerLinks: [
{doc: 'getting-started', label: 'Docs'},
{
Expand Down