forked from barbajs/barba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update documentation folder + remove unused jobs
- Loading branch information
1 parent
61e1b41
commit 6c1fee7
Showing
1 changed file
with
1 addition
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] | ||
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 | ||
|
@@ -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 |