From 23220caf7a87541483d84a52fbe0d1035641a051 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 20 Mar 2022 14:20:28 -0700 Subject: [PATCH] + Neocities and pages scripts built --- .gitlab-ci.yml | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bbc4c90..877c45c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,20 +21,32 @@ build-site: - public/ -#deploy-neocities: -# # This might get really ugly with neocities so hang on a while before we bother -# # trying to figure how tf we deploy this thing -# only: -# refs: -# - neocities -# -# stage: deploy -# -# script: -# # First the html -# - bash upload.sh -h -# # then we do the media files -# - bash upload.sh -M +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