-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (34 loc) · 1.04 KB
/
beta.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
name: Build Beta of Streams
concurrency:
group: Streams-norelease
on:
push:
branches:
- main
tags-ignore:
- v*
workflow_dispatch:
jobs:
deploy:
if: ${{ !contains(toJSON(github.event.commits.*.message), 'RELEASE') }}
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Install Dependency
run: npm install
- name: Build
run: |
echo -e -n "title: $:/build\n\nStreams commit: $(git rev-parse HEAD) on TiddlyWiki <<version>> built at $(date +'%F %T %Z')\n\n" > ./tiddlers/build.tid
echo -e -n "title: $:/SiteTitle\n\n[[Streams beta|$:/build]]\n" > ./tiddlers/SiteTitle.tid
npm run build-beta
npm run build-prerelease-beta
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./output
keep_files: true