Skip to content

Commit

Permalink
Fixed: circle ci config.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmariuzzo committed Oct 24, 2018
1 parent 0495d2c commit 8b3daec
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,26 @@ jobs:
- SOURCE_BRANCH: master
- TARGET_BRANCH: gh-pages
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
- run: npm run build
- deploy:
name: Deploy to Github Pages
command: |
if [ $CIRCLE_BRANCH == $SOURCE_BRANCH ]; then
git config --global user.email $GH_EMAIL
git config --global user.name $GH_NAME
<<<<<<< HEAD
touch ~/.ssh/known_hosts
=======
>>>>>>> Fixed: github.com key auth.
ssh-keyscan github.com >> ~/.ssh/known_hosts

git clone $CIRCLE_REPOSITORY_URL out
git clone https://${GH_TOKEN}@github.com/developersdo/opensource.git out
cd out
git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
Expand All @@ -63,19 +69,25 @@ jobs:
- SOURCE_BRANCH: master
- TARGET_BRANCH: gh-pages
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
- run: npm run build
- run:
name: Scraping Github data
command: |
if [ $CIRCLE_BRANCH == $SOURCE_BRANCH ]; then
git config --global user.email $GH_EMAIL
git config --global user.name $GH_NAME
<<<<<<< HEAD
touch ~/.ssh/known_hosts
=======
>>>>>>> Fixed: github.com key auth.
ssh-keyscan github.com >> ~/.ssh/known_hosts

npm run refresh
git add -A
Expand Down

0 comments on commit 8b3daec

Please sign in to comment.