webbed-site/.gitlab-ci.yml

36 lines
No EOL
556 B
YAML

stages:
- build
- deploy
default:
image: ruby:3.2
build:
stage: build
script:
- gem install bundler
- bundle install
- bundle exec jekyll build -d public
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