File tree Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ executors:
44 node_executor :
55 docker :
66 - image : circleci/node:8
7+ environment :
8+ - SOURCE_BRANCH : master
9+ - TARGET_BRANCH : gh-pages
710jobs :
811 build :
912 executor : node_executor
4245 command : yarn build
4346 - run :
4447 name : Deploying to GitHub Pages
45- command : |
46- git config --global user.email $GH_EMAIL
47- git config --global user.name $GH_NAME
48- yarn deploy
48+ command : ./scripts/deploy.sh
4949
5050workflows :
5151 version : 2
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ git config --global user.email $GH_EMAIL
3+ git config --global user.name $GH_NAME
4+
5+ git clone $CIRCLE_REPOSITORY_URL out
6+
7+ cd out
8+ git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
9+ git rm -rf .
10+ cd ..
11+
12+ yarn build
13+
14+ cp -a build/. out/.
15+
16+ mkdir -p out/.circleci && cp -a .circleci/. out/.circleci/.
17+ cd out
18+
19+ git add -A
20+ git commit -m " Automated deployment to GitHub Pages: ${CIRCLE_SHA1} " --allow-empty
21+
22+ git push origin $TARGET_BRANCH
Original file line number Diff line number Diff line change 22import React from 'react' ;
33import { Deck } from 'spectacle' ;
44import createTheme from 'spectacle/lib/themes/default' ;
5- import { colours , fontFamilies , progress } from './theme' ;
5+ import { colours , fontFamilies } from './theme' ;
66import { BrowserRouter as Router , Route , Link } from 'react-router-dom' ;
77import {
88 functionsSlideList ,
You can’t perform that action at this time.
0 commit comments