-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (40 loc) · 1.18 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '4/15 * * * *'
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout PR maker
uses: actions/checkout@v2
with:
path: pr-maker
- name: Checkout TW branch tiddlywiki-com
uses: actions/checkout@v2
with:
repository: jermolene/TiddlyWiki5
ref: tiddlywiki-com
path: tiddlywiki
- name: Setup node
uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Build
run: |
cp -fr ./pr-maker/tiddlers ./tiddlywiki/editions/tw5.com/tiddlers
cp -fr ./pr-maker/plugins ./tiddlywiki/editions/tw5.com/plugins
node tiddlywiki/tiddlywiki ./tiddlywiki/editions/tw5.com --output ./output --build index
ls
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./output
keep_files: true