Add .circleci/config.yml

This commit is contained in:
Milan Kolar 2020-10-12 22:44:08 +02:00
parent 1fb305e7c8
commit ef648f61d0

24
.circleci/config.yml Normal file
View file

@ -0,0 +1,24 @@
version: 2.1
jobs:
deploy-website:
docker:
- image: circleci/node:10.16
steps:
- checkout
- run:
name: Deploying to GitHub Pages
command: |
git config --global user.email "mkolar@users.noreply.github.com"
git config --global user.name "Website Deployment Script"
echo "machine github.com login mkolar password $GITHUB_TOKEN" > ~/.netrc
cd website && yarn install && GIT_USER=mkolar yarn run publish-gh-pages
workflows:
build_and_deploy:
jobs:
- deploy-website:
filters:
branches:
only: feature/move_documentation