mirror of https://github.com/status-im/evmc.git
Circle CI: Upload docs
This commit is contained in:
parent
e30733de5b
commit
36830eb700
31
circle.yml
31
circle.yml
|
@ -14,13 +14,13 @@ jobs:
|
||||||
name: "Build"
|
name: "Build"
|
||||||
command: cmake --build ~/build
|
command: cmake --build ~/build
|
||||||
|
|
||||||
generate-docs:
|
test-docs:
|
||||||
docker:
|
docker:
|
||||||
- image: ethereum/cpp-build-env
|
- image: ethereum/cpp-build-env
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: "Generate documentation"
|
name: "Test documentation"
|
||||||
command: |
|
command: |
|
||||||
doxygen docs/Doxyfile > doxygen.log 2> doxygen.warnings
|
doxygen docs/Doxyfile > doxygen.log 2> doxygen.warnings
|
||||||
if [ -s doxygen.warnings ]; then
|
if [ -s doxygen.warnings ]; then
|
||||||
|
@ -30,9 +30,34 @@ jobs:
|
||||||
fi
|
fi
|
||||||
cat doxygen.log
|
cat doxygen.log
|
||||||
|
|
||||||
|
upload-docs:
|
||||||
|
docker:
|
||||||
|
- image: ethereum/cpp-build-env
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run:
|
||||||
|
name: "Generate documentation"
|
||||||
|
command: doxygen docs/Doxyfile
|
||||||
|
- run:
|
||||||
|
name: "Upload documentation"
|
||||||
|
command: |
|
||||||
|
git config user.email "docs-bot@ethereum.org"
|
||||||
|
git config user.name "Documentation Bot"
|
||||||
|
git add docs
|
||||||
|
git commit -m "Update docs"
|
||||||
|
git push -f "https://$GITHUB_TOKEN@github.com/ethereum/evmc.git" HEAD:gh-pages
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
evmc:
|
evmc:
|
||||||
jobs:
|
jobs:
|
||||||
- build
|
- build
|
||||||
- generate-docs
|
- test-docs
|
||||||
|
- upload-docs:
|
||||||
|
requires:
|
||||||
|
- test-docs
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- docs
|
||||||
|
|
Loading…
Reference in New Issue