mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-01-11 22:24:34 +01:00
[Manual] Update build scripts
This commit is contained in:
parent
c818d36fb7
commit
f21366c96d
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@ -20,8 +20,9 @@ jobs:
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y wget npm
|
sudo apt install -y wget npm
|
||||||
sudo npm install -g tiddlywiki
|
sudo npm install -g tiddlywiki
|
||||||
./Build.sh
|
./Bootstrap.sh
|
||||||
./DeployOld.sh
|
#./Build.sh
|
||||||
|
#./DeployOld.sh
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
|
@ -8,8 +8,9 @@ before_script: |
|
|||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script: |
|
script: |
|
||||||
./Build.sh
|
./Bootstrap.sh
|
||||||
./DeployOld.sh
|
#./Build.sh
|
||||||
|
#./DeployOld.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
37
Bootstrap.sh
Executable file
37
Bootstrap.sh
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Export all tiddlers from the specific path of the HTML wiki
|
||||||
|
tiddlywiki \
|
||||||
|
--verbose \
|
||||||
|
--load ./public/index.html \
|
||||||
|
--output ./Output.tmp \
|
||||||
|
--save "[prefix[$:/OcttKB/Repo/]]"
|
||||||
|
|
||||||
|
# Move the exported folder to a better location
|
||||||
|
mv ./Output.tmp/\$_/OcttKB/Repo ./Repo.tmp
|
||||||
|
|
||||||
|
# Prepare the special files already present in the repo for the next step
|
||||||
|
cd ./Repo
|
||||||
|
for File in *.sh
|
||||||
|
do
|
||||||
|
mv "$File" "$File.sh.txt.sh"
|
||||||
|
done
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Rename all extracted scripts to have a correct extension
|
||||||
|
cd ./Repo.tmp
|
||||||
|
for File in *.sh.txt
|
||||||
|
do
|
||||||
|
mv "$File" "$File.sh"
|
||||||
|
done
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Move the files of this repo to overwrite the extracted ones, then move everything back
|
||||||
|
# This is so, if present, files from the repo are preferred, if needed in case of emergency
|
||||||
|
mv ./Repo/* ./Repo.tmp/
|
||||||
|
mv ./Repo.tmp/* ./Repo/
|
||||||
|
|
||||||
|
# Move everything to the working directory and on to the next step
|
||||||
|
mv ./Repo/* ./
|
||||||
|
chmod +x *.sh
|
||||||
|
./Main.sh.txt.sh
|
Loading…
Reference in New Issue
Block a user