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:
parent
190bf682db
commit
aa1342fcbb
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user