changed gitlabci to reflect new structure & learning branches :D
This commit is contained in:
parent
82025bf3ab
commit
665c935386
1 changed files with 26 additions and 2 deletions
|
@ -1,12 +1,36 @@
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
default:
|
default:
|
||||||
image: ruby:3.2
|
image: ruby:3.2
|
||||||
|
|
||||||
deploy-pages:
|
build:
|
||||||
|
stage: build
|
||||||
script:
|
script:
|
||||||
- gem install bundler
|
- gem install bundler
|
||||||
- bundle install
|
- bundle install
|
||||||
- bundle exec jekyll build -d public
|
- bundle exec jekyll build -d public
|
||||||
pages: true # specifies that this is a Pages job
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- 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
|
Loading…
Add table
Reference in a new issue