stages: - test - deploy cache: key: ${CI_COMMIT_REF_SLUG} paths: - target/ - cargo/ before_script: - rustup default stable - cargo --version - rustc --version test: stage: test script: - cargo test --verbose build_site: stage: build_site script: - cargo run - mv output public artifacts: paths: - public pages: stage: deploy script: - echo "Publishing site..." dependencies: - build_site artifacts: paths: - public rules: - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"