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:
|
stages:
|
||||||
- test
|
- test
|
||||||
- doc
|
- document
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
CARGO_HOME: /cache/cargocache
|
CARGO_HOME: /cache/cargocache
|
||||||
@ -25,11 +25,11 @@ test-release:
|
|||||||
script:
|
script:
|
||||||
- cargo test --verbose --all --release
|
- cargo test --verbose --all --release
|
||||||
|
|
||||||
pages:
|
documentation:
|
||||||
stage: doc
|
stage: document
|
||||||
script:
|
script:
|
||||||
- cargo doc --no-deps
|
- 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).
|
# 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
|
# - echo '<meta http-equiv="refresh" content="0; url={{ LIBRARY NAME }}">' > public/index.html
|
||||||
only:
|
only:
|
||||||
|
Loading…
Reference in New Issue
Block a user