Skip to content

Commit

Permalink
ci: Automatically pushes docs to website (#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas authored Feb 17, 2018
1 parent 39a141f commit 5dd84ed
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ jobs:
- run: git remote add origin https://arekkas:$GITHUB_TOKEN@github.com/ory/hydra.git
- run: git push origin HEAD:master

publish-docs:
docker:
- image: alpine/git:1.0.4
working_directory: /go/src/github.com/ory/oathkeeper
steps:
- checkout
- run: git config --global user.email "hi@ory.am"
- run: git config --global user.name "ORY Continuous Integration"
- run: "git clone https://arekkas:$DOCS_TOKEN_PUSH@github.com/ory/ory-am.git ../ory-am"
- run: "cp -R ./docs/* ../ory-am/docs/1-hydra/"
- run: "(cd ../ory-am && git add -A && git commit -a -m \"docs: Updates ORY Hydra docs\" && git push origin) || exit 0"

workflows:
version: 2
"test, build, push, and deploy":
Expand All @@ -125,6 +137,10 @@ workflows:
filters:
tags:
only: /.*/
- publish-docs:
filters:
branches:
only: master
- swagger:
filters:
tags:
Expand Down

0 comments on commit 5dd84ed

Please sign in to comment.