.pages: stage: deploy only: - tags - /^[0-9]+-.*$/ script: - cargo doc --no-deps - rm -rfv public - mkdir public - mv target/doc/* public - echo '' > 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: - cargo publish --locked --verbose --token $CARGO_REGISTRY_TOKEN