-
Notifications
You must be signed in to change notification settings - Fork 126
64 lines (57 loc) · 1.97 KB
/
docs.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: docs
on:
push:
branches:
- master
tags:
- v*
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Create required ignored seed.json
run: "echo '{}' > ./entry_types/scrolled/package/.storybook/seed.json"
- name: Build pageflow SassDoc
uses: codevise/[email protected]
with:
input: ./app/assets/stylesheets/pageflow/themes
output: ./out/theme/<ref>
theme: pageflow
themePackage: tf/sassdoc-theme-pageflow#dist
- name: Build pageflow JSDoc
uses: codevise/[email protected]
with:
input: "./package/src/editor ./package/src/ui ./package/src/testHelpers"
output: ./out/js/<ref>
config: ./package/documentation.yml
github: true
projectName: pageflow
sortOrder: alpha
theme: pageflow-documentation-js-theme
themePackage: codevise/pageflow-documentation-js-theme#master
- name: Build pageflow-scrolled JSDoc
uses: codevise/[email protected]
with:
input: ./entry_types/scrolled/package/src ./entry_types/scrolled/package/spec/support
output: ./out/scrolled/js/<ref>
config: ./entry_types/scrolled/package/documentation.yml
github: true
projectName: pageflow-scrolled
sortOrder: alpha
theme: pageflow-documentation-js-theme
themePackage: codevise/pageflow-documentation-js-theme#master
- name: Deploy
run: |
wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2/entrypoint.sh
bash ./entrypoint.sh
env:
PERSONAL_TOKEN: ${{ secrets.CODEVISE_BOT_PERSONAL_TOKEN }}
PUBLISH_BRANCH: master
PUBLISH_DIR: ./out
EXTERNAL_REPOSITORY: codevise/pageflow-docs
INPUT_KEEPFILES: true
INPUT_COMMITMESSAGE: "Update docs"
INPUT_USERNAME: "codevise-bot"
INPUT_USEREMAIL: "[email protected]"