Set up GitLab Pages config
This commit is contained in:
parent
753e84dacd
commit
8865b0f55d
|
@ -4,23 +4,11 @@ default:
|
|||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
|
||||
cache:
|
||||
key: "$CI_COMMIT_SHA"
|
||||
paths:
|
||||
- .output/
|
||||
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build:
|
||||
stage: build
|
||||
pages:
|
||||
script:
|
||||
- git submodule update --init --recursive
|
||||
- nikola build
|
||||
|
||||
production:
|
||||
stage: deploy
|
||||
script:
|
||||
- ls .output
|
||||
- nikola deploy
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master
|
||||
|
|
4
conf.py
4
conf.py
|
@ -545,7 +545,7 @@ REDIRECTIONS = []
|
|||
# in a `nikola deploy` command as you like.
|
||||
DEPLOY_COMMANDS = {
|
||||
'default': [
|
||||
"s3cmd sync --no-mime-magic --guess-mime-type .output/ s3://erambler.co.uk",
|
||||
"s3cmd sync --no-mime-magic --guess-mime-type public/ s3://erambler.co.uk",
|
||||
"aws cloudfront create-invalidation --distribution-id E3E9R6D3K2FTI2 --paths '/*'",
|
||||
]
|
||||
}
|
||||
|
@ -567,7 +567,7 @@ GITHUB_COMMIT_SOURCE = True
|
|||
# Where the output site should be located
|
||||
# If you don't use an absolute path, it will be considered as relative
|
||||
# to the location of conf.py
|
||||
OUTPUT_FOLDER = '.output'
|
||||
OUTPUT_FOLDER = 'public'
|
||||
|
||||
# where the "cache" of partial generated content should be located
|
||||
# default: 'cache'
|
||||
|
|
Loading…
Reference in New Issue