webbed-site/.gitlab-ci.yml

36 lines
556 B
YAML
Raw Permalink Normal View History

stages:
- build
- deploy
2024-12-15 21:53:52 -06:00
default:
image: ruby:3.2
2024-09-26 12:58:16 -05: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
2024-09-26 12:58:16 -05:00
artifacts:
paths:
2024-12-15 22:19:26 -06:00
- 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