File tree Expand file tree Collapse file tree 4 files changed +44
-2
lines changed Expand file tree Collapse file tree 4 files changed +44
-2
lines changed Original file line number Diff line number Diff line change
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 "OWNER_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $1}')" >> $GITHUB_ENV
20
+ echo "REPO_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}')" >> $GITHUB_ENV
21
+ echo "CURRENT_VERSION=$(node -p 'require("./package.json").version')" >> $GITHUB_ENV
22
+ - name : Install
23
+ run : npm install
24
+ working-directory : example/
25
+ - name : Build
26
+ run : npm run website -- --metadataversion="${CURRENT_VERSION}"
27
+ env :
28
+ OWNER_NAME : ${{ env.OWNER_NAME }}
29
+ REPO_NAME : ${{ env.REPO_NAME }}
30
+ CURRENT_VERSION : ${{ env.CURRENT_VERSION }}
31
+ working-directory : example/
32
+ - name : Deploy
33
+ uses : peaceiris/actions-gh-pages@v3
34
+ with :
35
+ github_token : ${{ secrets.GITHUB_TOKEN }}
36
+ publish_dir : ./example/dist
Original file line number Diff line number Diff line change
1
+ dist /
1
2
# ## https://raw.github.com/github/gitignore/608690d6b9a78c2a003affc792e49a84905b3118/Node.gitignore
2
3
3
4
# Logs
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
{
2
2
"private" : true ,
3
+ "name" : " textlint-rule-preset-ja-technical-writing" ,
4
+ "version" : " 5.0.0" ,
5
+ "homepage" : " https://github.com/textlint-ja/textlint-rule-preset-ja-technical-writing" ,
3
6
"scripts" : {
4
7
"textlint" : " textlint ../README.md" ,
5
- "test" : " npm run textlint"
8
+ "test" : " npm run textlint" ,
9
+ "website" : " textlint-website-generator --cwd `pwd` --textlintrc ./example/.textlintrc --output-dir ./dist"
6
10
},
7
11
"devDependencies" : {
12
+ "@textlint/website-generator" : " ^0.10.2" ,
8
13
"textlint" : " ^11.9.0" ,
9
14
"textlint-filter-rule-comments" : " ^1.2.2" ,
10
15
"textlint-rule-preset-ja-technical-writing" : " file:../"
11
16
}
12
- }
17
+ }
You can’t perform that action at this time.
0 commit comments