41 lines
687 B
YAML
41 lines
687 B
YAML
variables:
|
|
GIT_SUBMODULE_STRATEGY: none
|
|
|
|
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
|
|
tags:
|
|
- shell
|
|
script:
|
|
- cp -r ${CI_PROJECT_DIR}/* ${DEPLOY_PATH}
|
|
|
|
prestep:
|
|
stage: .pre
|
|
tags:
|
|
- shell
|
|
script:
|
|
- cd ${CI_PROJECT_DIR}
|
|
- sed -iE "s,(https://)(git.tablet.sh),\1pat:${PAT}@\2," .gitmodules
|
|
|
|
clone:
|
|
stage: clone
|
|
tags:
|
|
- shell
|
|
script:
|
|
- git submodule sync
|
|
- git submodule update --init --recursive |