24 lines
536 B
YAML
24 lines
536 B
YAML
include:
|
|
- project: 'templates/hugo-obsidian'
|
|
file: '/action.yml'
|
|
inputs:
|
|
index: "true"
|
|
input: content
|
|
output: assets/indices
|
|
root: "."
|
|
- local: "/.gitlab/hugo.template.yml"
|
|
stages:
|
|
- clone
|
|
- index
|
|
- setup-hugo
|
|
- deploy
|
|
deploy:
|
|
stage: deploy
|
|
script:
|
|
- cp -r ${CI_PROJECT_DIR}/* ${DEPLOY_PATH}
|
|
clone:
|
|
script:
|
|
- cd ${CI_PROJECT_DIR}
|
|
- sed -iE -e "s,(https://)(git.tablet.sh),\1pat:\${PAT}@\2," .gitmodules
|
|
- git submodule sync
|
|
- git submodule update --init --recursive |