Skip to content

Commit

Permalink
Fix build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
octospacc committed Sep 20, 2022
1 parent 820a4ac commit a61464b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
public/Static.html
public/Style.css
5 changes: 1 addition & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions Build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
cd ./public
tiddlywiki \
--load index.html \
--output ./ \
--rendertiddler $:/core/templates/static.template.css Style.css text/plain \
--rendertiddler $:/core/templates/alltiddlers.template.html Static.html text/plain

0 comments on commit a61464b

Please sign in to comment.