workflow: rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"' default: image: 'joxit/rust-openssl:1.24' build: script: - cargo build test: script: - cargo test publish: script: - export CARGO_REGISTRY_TOKEN=$CARGO_TOKEN - cargo publish