mirror of https://gitlab.com/octtspacc/OcttKB
Fix build scripts
This commit is contained in:
parent
820a4acc63
commit
a61464b21b
|
@ -0,0 +1,28 @@
|
|||
name: Build and Deploy with TiddlyWiki
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
page_build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y npm
|
||||
sudo npm install -g tiddlywiki
|
||||
./Build.sh
|
||||
|
||||
- name: Deploy
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
folder: public
|
|
@ -0,0 +1,2 @@
|
|||
public/Static.html
|
||||
public/Style.css
|
|
@ -8,10 +8,7 @@ before_script: |
|
|||
pages:
|
||||
stage: deploy
|
||||
script: |
|
||||
#./Build.sh
|
||||
cd ./public
|
||||
tiddlywiki ./index.html --rendertiddler $:/core/templates/alltiddlers.template.html Static.html text/plain
|
||||
mv ./output/* ./
|
||||
./Build.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
|
Loading…
Reference in New Issue