.pages:
stage: deploy
only:
- tags
- /^[0-9]+-.*$/
script:
- cargo doc --no-deps
- rm -rfv public
- mkdir public
- mv target/doc/* public
- echo '<meta http-equiv="refresh" content="0; url=./openrouter">' > public/index.html
needs: [ ]
artifacts:
paths:
- public
docs:
stage: deploy
only:
- merge_requests
- external_pull_requests
- tags
script:
- cargo doc --all-features
needs: [ "x86_64-unknown-linux-gnu" ]
artifacts:
paths:
- target/doc/
publish:
stage: deploy
only:
- tags
script:
- "echo Attempting to publish with token: $CARGO_REGISTRY_TOKEN"
- "echo Token length: ${#CARGO_REGISTRY_TOKEN}"
- cargo publish --locked --verbose --token $CARGO_REGISTRY_TOKEN
needs: [ ]