Static Site Build using Gitlab CI
This commit is contained in:
parent
08005b791d
commit
93a6015ade
1 changed files with 12 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
image: ruby:latest
|
||||
image: ruby:3.1
|
||||
|
||||
variables:
|
||||
JEKYLL_ENV: production
|
||||
|
|
@ -17,6 +17,17 @@ test:
|
|||
except:
|
||||
- master
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- apt-get update
|
||||
- apt-get install -y zip
|
||||
- bundle exec jekyll build -d butter-site
|
||||
- zip -r content.zip butter-site
|
||||
artifacts:
|
||||
paths:
|
||||
- content.zip
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
script:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue