image: shockrah/website:latest stages: - build - deploy build-site: only: refs: - master stage: build script: - hugo version - hugo artifacts: paths: - public/ pages: stage: deploy needs: - build-site dependencies: - build-site # Dummy script to keep the job valid script: - > if [ -d public/ ]; then echo 'Public directory found' else echo 'Nothing found' fi artifacts: paths: - public/ neocities: stage: deploy needs: - build-site when: manual dependencies: - build-site script: - bash scripts/neocities.sh