Skip to content

Commit a5974d5

Browse files
committed
CI(website): add website
1 parent e55a2d3 commit a5974d5

File tree

5 files changed

+10935
-7
lines changed

5 files changed

+10935
-7
lines changed

.github/workflows/website.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: website
2+
on:
3+
push:
4+
branches:
5+
- master
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: 14
17+
- name: Set Env
18+
run: |
19+
echo "CURRENT_VERSION=$(node -p 'require("./package.json").version')" >> $GITHUB_ENV
20+
- name: Install
21+
run: yarn install
22+
- name: Build
23+
run: npm run website -- --metadataversion="${CURRENT_VERSION}"
24+
env:
25+
CURRENT_VERSION: ${{ env.CURRENT_VERSION }}
26+
working-directory: example/
27+
- name: Deploy
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./example/dist

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist/
12
/lib
23
### https://raw.github.com/github/gitignore/408c616ae0ad8f4b8101d8e876b9b67ac6b14059/Node.gitignore
34

example/.textlintrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"rules": {
3-
"preset-jtf-style": {
4-
"4.3.1.丸かっこ()": false
5-
}
3+
"preset-jtf-style": true
64
}
75
}

0 commit comments

Comments
 (0)