Renamed doc stage and excluded the '.lock' file which was causing an S3 sync return error code, failing the build.

This commit is contained in:
Luke Anderson 2019-05-08 00:52:22 +10:00
parent 190bf682db
commit aa1342fcbb
No known key found for this signature in database
GPG Key ID: 44408169EC61E228

View File

@ -4,7 +4,7 @@ image: 'sigp/lighthouse:latest'
stages:
- test
- doc
- document
variables:
CARGO_HOME: /cache/cargocache
@ -25,11 +25,11 @@ test-release:
script:
- cargo test --verbose --all --release
pages:
stage: doc
documentation:
stage: document
script:
- cargo doc --no-deps
- aws s3 sync target/doc/ s3://lighthouse-docs.sigmaprime.io/
- aws s3 sync target/doc/ s3://lighthouse-docs.sigmaprime.io/ --exclude '.lock'
# Configure the below when we want to have a default page (and update S3 bucket index).
# - echo '<meta http-equiv="refresh" content="0; url={{ LIBRARY NAME }}">' > public/index.html
only: