Skip to content

Commit

Permalink
Update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpshr committed Dec 1, 2018
1 parent 703c855 commit 42024cc
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2
jobs:
build:
branches:
ignore:
- gh-pages
docker:
- image: circleci/node:11
environment:
- SOURCE_BRANCH: master
- TARGET_BRANCH: gh-pages
steps:
- checkout
- deploy:
command: |
if [ $CIRCLE_BRANCH == $SOURCE_BRANCH ]; then
git config --global user.email $GH_EMAIL
git config --global user.name $GH_NAME
git clone $CIRCLE_REPOSITORY_URL project
cd project
npx uncrate -p=v5.0.3
git checkout $TARGET_BRANCH
cp -r dist/* .
rm -rf dist
git add -A
git commit -m "Automated deployment: ${CIRCLE_SHA1}" --allow-empty
git push origin $TARGET_BRANCH
fi
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<img src="https://metamask.io/img/metamask.png" width="60" height="auto">

MetaMask project documentation

https://metamask.github.io/metamask-docs/

[![CircleCI](https://circleci.com/gh/MetaMask/metamask-docs/tree/master.svg?style=shield)](https://circleci.com/gh/MetaMask/metamask-docs/tree/master)

## Usage

Documentation is auto-deployed when markdown files on the `master` branch are edited. No installation is necessary.
Documentation is auto-deployed when markdown files on the `master` branch change: just create, edit, or delete files as needed and commit the updates.
4 changes: 3 additions & 1 deletion uncrate.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module.exports = {
description: 'MetaMask project documentation',
exclude: '.git|README.md',
logo: 'https://metamask.io/img/metamask.png',
name: 'MetaMask',
repo: 'metamask/metamask-extension'
repo: 'metamask/metamask-extension',
subdir: '/metamask-docs/'
};

0 comments on commit 42024cc

Please sign in to comment.