|
|
@@ -123,26 +123,18 @@ jobs:
|
|
|
command: |
|
|
|
. .circleci/gcc_test.sh
|
|
|
|
|
|
- "website":
|
|
|
- machine: true
|
|
|
- machine:
|
|
|
- node:
|
|
|
- version: 6.10.3
|
|
|
- npm:
|
|
|
- version: 3.10.10
|
|
|
-
|
|
|
- test:
|
|
|
- override:
|
|
|
- - "true"
|
|
|
-
|
|
|
- deployment:
|
|
|
- website:
|
|
|
- branch: master
|
|
|
- commands:
|
|
|
- - git config --global user.email "[email protected]"
|
|
|
- - git config --global user.name "Website Deployment Script"
|
|
|
- - echo "machine github.com login cpuhrsch password $GITHUB_TOKEN" > ~/.netrc
|
|
|
- - cd website && npm install && GIT_USER=cpuhrsch npm run publish-gh-pages
|
|
|
+ "website-build":
|
|
|
+ docker:
|
|
|
+ - image: node:latest
|
|
|
+ working_directory: ~/repo
|
|
|
+ steps:
|
|
|
+ - checkout
|
|
|
+ - run:
|
|
|
+ command: |
|
|
|
+ git config --global user.email "[email protected]"
|
|
|
+ git config --global user.name "Website Deployment Script"
|
|
|
+ echo "machine github.com login cpuhrsch password $GITHUB_TOKEN" > ~/.netrc
|
|
|
+ cd website && npm install && GIT_USER=cpuhrsch npm run publish-gh-pages
|
|
|
|
|
|
workflows:
|
|
|
version: 2
|
|
|
@@ -157,4 +149,4 @@ workflows:
|
|
|
- "gcc6"
|
|
|
- "gcc7"
|
|
|
- "gcclatest"
|
|
|
- - "website"
|
|
|
+ - "website-build"
|