mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-02-18 04:10:48 +01:00
Fix build scripts
This commit is contained in:
parent
820a4acc63
commit
a61464b21b
28
.github/workflows/main.yml
vendored
Normal file
28
.github/workflows/main.yml
vendored
Normal file
@ -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
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
public/Static.html
|
||||||
|
public/Style.css
|
@ -8,10 +8,7 @@ before_script: |
|
|||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script: |
|
script: |
|
||||||
#./Build.sh
|
./Build.sh
|
||||||
cd ./public
|
|
||||||
tiddlywiki ./index.html --rendertiddler $:/core/templates/alltiddlers.template.html Static.html text/plain
|
|
||||||
mv ./output/* ./
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
Loading…
x
Reference in New Issue
Block a user