2024-01-02 18:52:03 -05:00
|
|
|
include:
|
2024-01-02 18:56:01 -05:00
|
|
|
- project: 'templates/hugo-obsidian'
|
|
|
|
file: '/action.yml'
|
2024-01-02 18:52:03 -05:00
|
|
|
inputs:
|
|
|
|
index: "true"
|
|
|
|
input: content
|
|
|
|
output: assets/indices
|
2024-01-02 18:56:01 -05:00
|
|
|
root: "."
|
2024-01-02 18:53:54 -05:00
|
|
|
- local: "/.gitlab/hugo.template.yml"
|
2024-01-02 18:52:03 -05:00
|
|
|
stages:
|
2024-01-02 19:15:19 -05:00
|
|
|
- clone
|
2024-01-02 18:52:03 -05:00
|
|
|
- index
|
|
|
|
- setup-hugo
|
|
|
|
- deploy
|
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
2024-01-02 19:15:19 -05:00
|
|
|
- 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
|