Skip to content

Commit

Permalink
update documentation folder + remove unused jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymichel committed Feb 4, 2020
1 parent 61e1b41 commit 6c1fee7
Showing 1 changed file with 1 addition and 62 deletions.
63 changes: 1 addition & 62 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,56 +94,7 @@ jobs:
- '2c:bd:91:1f:35:54:de:94:22:77:fc:3e:68:f9:6b:2f'
- run:
name: Deploy docs to gh-pages branch
command: ./node_modules/.bin/gh-pages -d documentation -e docs/v2 -m 'Deploy docs [ci skip]'
www-build:
<<: *defaults
steps:
- checkout
- restore_cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- restore_cache:
name: Restore Node modules
keys:
- dependency-cache-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
- run:
name: Hexo generate
command: yarn build
- persist_to_workspace:
root: ~/repo
paths:
- dist
www-deploy:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/repo
- run:
name: Install and configure dependencies
command: |
npm install gh-pages@2.0.1
git config user.email $GH_EMAIL
git config user.name $GH_NAME
- add_ssh_keys:
fingerprints:
- '2c:bd:91:1f:35:54:de:94:22:77:fc:3e:68:f9:6b:2f'
- run:
name: Deploy website to gh-pages branch
command: ./node_modules/.bin/gh-pages -d dist -e _/v2 -m 'Deploy website [ci skip]'
command: ./node_modules/.bin/gh-pages -d documentation -e api -m 'Deploy docs [ci skip]'

workflows:
version: 2
Expand Down Expand Up @@ -171,15 +122,3 @@ workflows:
filters:
branches:
only: master
website_v2:
jobs:
- www-build:
filters:
branches:
only: website-2.x
- www-deploy:
requires:
- www-build
filters:
branches:
only: website-2.x

0 comments on commit 6c1fee7

Please sign in to comment.