Skip to content

Commit

Permalink
website: Add website.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 30, 2021
1 parent e6fff61 commit 5c540f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
- run: npm install [email protected] typescript -g
- run: typedoc src/server.ts --name sgo

- run: npm i markdown-to-html-cli -g
- run: markdown-to-html --output docs/index.html
- run: markdown-to-html --source README-zh.md --output docs/index.zh.html

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand All @@ -33,12 +37,12 @@ jobs:

- name: Generate Changelog
id: changelog
uses: jaywcjlove/[email protected].3
uses: jaywcjlove/[email protected].6
if: steps.create_tag.outputs.successful
with:
token: ${{ secrets.GITHUB_TOKEN }}
head-ref: ${{ steps.create_tag.outputs.version }}
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
filter-author: (小弟调调™|Renovate Bot)
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'

- name: Create Release
Expand Down
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
"name": "sgo",
"version": "3.0.0",
"description": "Setting a directory to a static server.",
"homepage": "https://jaywcjlove.github.io/sgo/",
"author": "kenny wang <[email protected]>",
"main": "lib/server.js",
"license": "MIT",
"bin": {
"sgo": "lib/sgo.js"
},
"main": "lib/server.js",
"scripts": {
"prepare": "npm run build",
"build": "tsbb build --no-esm --disable-babel --entry src/sgo.ts",
Expand Down Expand Up @@ -38,8 +41,12 @@
"type": "git",
"url": "https://github.com/jaywcjlove/sgo.git"
},
"author": "kenny wang <[email protected]>",
"license": "MIT",
"markdown-to-html": {
"reurls": {
"README-zh.md": "index.zh.html",
"README.md": "index.html"
}
},
"dependencies": {
"chokidar": "3.5.2",
"ejs": "3.1.6",
Expand Down

0 comments on commit 5c540f3

Please sign in to comment.