-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(docs): CI * 通用设计规范 * feat(docs): 亮暗色切换动画 * 使用API托管字体 * 更新字体 * 更新文档 * 强制覆盖 vitepress 默认样式 * 调整结构 * chore: update dependencies * Update button.md * 更新设计文档 * refact: 迁移组件库设计文档 * fix CI * fix CI * 更新时间格式
- Loading branch information
Showing
46 changed files
with
4,398 additions
and
797 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,56 @@ | ||
name: Deploy Eden Docs To Preview Environment | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
- "dev/**" | ||
- "feat/**" | ||
paths: | ||
- "lib/eden-design/**" | ||
|
||
concurrency: | ||
group: "eden-docs-deploy" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
- name: Verify Change Logs | ||
run: node common/scripts/install-run-rush.js change --verify | ||
- name: Rush Update | ||
run: node common/scripts/install-run-rush.js update | ||
- name: Rush Install | ||
run: node common/scripts/install-run-rush.js install | ||
- name: Generate secret for translator | ||
env: | ||
YOUDAO_APP_ID: ${{ secrets.YOUDAO_APP_ID }} | ||
YOUDAO_APP_SECRET: ${{ secrets.YOUDAO_APP_SECRET }} | ||
shell: python | ||
run: | | ||
import os | ||
YOUDAO_APP_ID = os.getenv("YOUDAO_APP_ID") | ||
YOUDAO_APP_SECRET = os.getenv("YOUDAO_APP_SECRET") | ||
with open("./apps/ba-online-toolbox/src/tools/public/secrets.json", "w") as f: | ||
f.write(f'{{"appKey": "{YOUDAO_APP_ID}", "appSecret": "{YOUDAO_APP_SECRET}"}}') | ||
- name: Rush build | ||
run: node common/scripts/install-run-rush.js build --to eden-design --verbose | ||
- name: Docs rsync deploy | ||
uses: easingthemes/ssh-deploy@main | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.SERVER_PASS_PRODUCTION }} | ||
ARGS: "-rltgoDzvO --delete" | ||
SOURCE: "./lib/eden-design/docs/.vitepress/dist/" | ||
REMOTE_HOST: ${{ secrets.SERVER_HOST_PRODUCTION }} | ||
REMOTE_USER: ${{ secrets.SERVER_USER_PRODUCTION }} | ||
TARGET: "/var/www/eden-docs" | ||
EXCLUDE: ".git*" |
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
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
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
Oops, something went wrong.