-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbba186
commit cbfb32d
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
custom: https://jaywcjlove.github.io/#/sponsor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: CI/CD | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Create idoc config. | ||
run: | | ||
cat > idoc.yml << EOF | ||
site: "宝宝字帖" | ||
description: 一款功能强大的字帖生成工具,专为满足不同用户的书写练习需求而设计,并且会根据我自己宝宝的成长持续添加内容 | ||
keywords: 宝宝字帖, 字帖生成, 汉字练习, 英文字母练习, 笔顺描写, 书写练习, 自定义字帖, 教育工具, 笔控练习, 儿童书法 | ||
favicon: assets/logo.png | ||
logo: ./assets/logo.png | ||
openSource: https://github.com/jaywcjlove/copybook-generator | ||
homepage: https://wangchujiang.com/copybook-generator/ | ||
tocs: false | ||
element: | ||
wrapper: style=max-width:720px; | ||
meta: | ||
- <meta name="author" content="Kenny Wong"> | ||
- <meta property="og:site_name" content="<%= site %>"> | ||
- <meta property="og:url" content="<%=homepage%><%=RESOLVE_PATH%>"> | ||
- <meta property="og:image" content="<%=homepage%>assets/logo.png"> | ||
- <meta property="og:type" content="application"> | ||
- <meta property="og:title" content="<%= site %>"> | ||
- <meta property="og:description" content="<%= description%>"> | ||
- <meta property="twitter:image:src" content="<%=homepage%>assets/screenshots-1.png"> | ||
- <meta property="twitter:site" content="@jaywcjlove"> | ||
- <meta property="twitter:creator" content="jaywcjlove"> | ||
- <meta property="twitter:card" content="summary_large_image"> | ||
- <meta property="twitter:title" content="<%= site %> - <%= description%>"> | ||
- <meta property="twitter:description" content="<%= description%>"> | ||
- <meta name="apple-itunes-app" content="app-id=6476452351"> | ||
menus: | ||
Home: index.html | ||
Apps: | ||
url: https://wangchujiang.com/#/app | ||
target: __blank | ||
About: | ||
url: https://wangchujiang.com/#/about | ||
target: __blank | ||
sideEffectFiles: | ||
- README.zh.md | ||
- terms-of-service.md | ||
- terms-of-service.zh.md | ||
- privacy-policy.md | ||
- privacy-policy.zh.md | ||
footer: | | ||
<a href="./terms-of-service.html" target="_blank">Terms of Service</a> • | ||
<a href="./privacy-policy.html" target="_blank">Privacy Policy</a> • | ||
<a href="https://wangchujiang.com/#/projects" target="_blank">Projects</a> • | ||
<a href="https://wangchujiang.com/#/sponsor" target="_blank">Sponsor</a> • | ||
<a href="https://wangchujiang.com/#/app" target="_blank">More Apps</a><br /><br /> | ||
Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v{{idocVersion}} | ||
EOF | ||
- run: npm install idoc@1 -g | ||
- run: idoc | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
commit_message: ${{ github.event.head_commit.message }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.