2025-01-25 18:11:58 -06:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
2024-12-15 21:53:52 -06:00
|
|
|
default:
|
|
|
|
image: ruby:3.2
|
2024-09-26 12:58:16 -05:00
|
|
|
|
2025-01-25 18:11:58 -06:00
|
|
|
build:
|
|
|
|
stage: build
|
2024-09-26 12:58:16 -05:00
|
|
|
script:
|
2024-12-15 21:53:52 -06:00
|
|
|
- gem install bundler
|
|
|
|
- bundle install
|
|
|
|
- bundle exec jekyll build -d public
|
2025-01-25 18:11:58 -06:00
|
|
|
|
2024-09-26 12:58:16 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2024-12-15 22:19:26 -06:00
|
|
|
- public
|
2025-01-25 18:11:58 -06:00
|
|
|
|
|
|
|
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
|