.pages: stage: deploy only: - tags - /^[0-9]+-.*$/ script: - cargo doc --no-deps - rm -rf public - mkdir public - mv target/doc/* public - echo '' > public/index.html dependencies: [] artifacts: paths: - public publish: stage: deploy only: - tags - /^[0-9]+-.*$/ script: - cargo publish --locked --verbose --token $CARGO_REGISTRY_TOKEN dependencies: []