Update scripts

This commit is contained in:
octospacc 2022-09-22 17:58:44 +02:00
parent d5e0411165
commit 659802d03b
4 changed files with 10 additions and 5 deletions

View File

@ -21,6 +21,7 @@ jobs:
sudo apt install -y wget npm
sudo npm install -g tiddlywiki
./Build.sh
./DeployOld.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4

View File

@ -9,6 +9,7 @@ pages:
stage: deploy
script: |
./Build.sh
./DeployOld.sh
artifacts:
paths:
- public

View File

@ -1,7 +1,5 @@
#!/bin/sh
URL="https://kb.octt.eu.org"
cd ./public
tiddlywiki \
@ -9,6 +7,3 @@ tiddlywiki \
--output ./ \
--rendertiddler $:/core/templates/static.template.css Style.css text/plain \
--rendertiddler $:/core/templates/alltiddlers.template.html Static.html text/plain
wget -O "-1.html" "$URL" || true
wget -O "-2.html" "$URL/-1.html" || true

8
DeployOld.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
URL="https://kb.octt.eu.org"
cd ./public
wget -O "-1.html" "$URL" || true
wget -O "-2.html" "$URL/-1.html" || true