Skip to content
Snippets Groups Projects
Commit e8c0ef55 authored by Bastien Abadie's avatar Bastien Abadie Committed by Erwan Rouchet
Browse files

Build with drafts for surge

parent fd422f12
No related branches found
No related tags found
1 merge request!112Build with drafts for surge
Pipeline #168985 passed
......@@ -22,7 +22,7 @@ pre-commit:
script:
- pre-commit run -a
build:
.build:
image: alpine:3.15
stage: build
......@@ -34,9 +34,29 @@ build:
- apk add --update zola git
- git submodule update --init
build-drafts:
extends: .build
script:
- zola build --base-url=/ --drafts
only:
- branches
- tags
except:
- master
build-production:
extends: .build
script:
- zola build --base-url=/
only:
- master
pages:
image: alpine
stage: deploy
......@@ -48,6 +68,9 @@ pages:
only:
- master
dependencies:
- build-production
script:
# Gitlab exposes files from the public folder at the root of the project
- 'true'
......@@ -60,6 +83,8 @@ pages:
- branches
except:
- master
dependencies:
- build-drafts
environment:
name: ${CI_COMMIT_REF_SLUG}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment