OcttKB/GitLab.CrossRepoSync.sh

14 lines
372 B
Bash
Raw Normal View History

#!/bin/sh
TargetRepo="OcttKB.Web"
2023-02-28 12:07:24 +01:00
cd ./Wiki
tiddlywiki \
--verbose \
2023-02-28 12:07:24 +01:00
--output ./Output.tmp \
--rendertiddler "$:/core/save/all" "index.html" "text/plain"
git clone --depth 1 https://gitlab.com/octtspacc/$TargetRepo ./$TargetRepo
cd ./$TargetRepo
cp -r ../Output.tmp/index.html ./public/index.html
git add .
2023-02-28 12:07:24 +01:00
git commit -m "OcttKB Cross-Repo Sync (Raw to HTML)"
git push