From ebaf31fbff0aa9178a37434a86c0b72dde09f0fb Mon Sep 17 00:00:00 2001 From: onomanapeia Date: Sat, 25 Jan 2025 18:11:58 -0600 Subject: [PATCH 1/2] changed gitlabci to reflect new structure & learning branches :D --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6aa01f6..5effd73 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,36 @@ +stages: + - build + - deploy + default: image: ruby:3.2 -deploy-pages: +build: + stage: build script: - gem install bundler - bundle install - bundle exec jekyll build -d public - pages: true # specifies that this is a Pages job + artifacts: paths: - public + +deploy-pages: + stage: deploy + needs: + - build + when: manual + manual_confirmation: 'Is the world even ready for this?' + + # Only run on the default branch + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH + + script: + - true + + pages: true # specifies that this is a Pages job + artifacts: + paths: + - public \ No newline at end of file -- 2.45.3 From 3d67cd8097a16de9d1ca5de05156220fa714a88f Mon Sep 17 00:00:00 2001 From: onomanapeia Date: Sat, 25 Jan 2025 19:17:20 -0600 Subject: [PATCH 2/2] yaml fuckery --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5effd73..6249dea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,7 +28,7 @@ deploy-pages: - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH script: - - true + - "true" pages: true # specifies that this is a Pages job artifacts: -- 2.45.3