build:
    script:
        - gradle build
    type: build

build:
    script:
        - gradle build
        # Prevent build artifacts from being removed before deployment
        - cp -r CacheCleaner/build/outputs/ ../artifacts/
    type: build

deploy:
    script:
        - publish-artifacts $DEPLOY_DESTINATION android-cache-cleaner ../artifacts/
        - rm -rf ../artifacts/
    type: deploy

Add 'deploy' job into GitLab CI configuration file
Add 'deploy' job into GitLab CI configuration file
