-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
69 lines (53 loc) · 1.84 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: 3
tasks:
dev:
cmds:
- npm start
run:fr:
cmds:
- npm run start -- --locale fr
run:zh:
cmds:
- npm run start -- --locale zh-CN
i18n:
cmds:
- npm run write-translations -- --locale en
- npm run write-translations -- --locale fr
- npm run write-translations -- --locale zh-CN
i18n:zh:
cmds:
- mkdir -p i18n/zh-CN/docusaurus-plugin-content-docs/current
- cp -r docs/** i18n/zh-CN/docusaurus-plugin-content-docs/current
- mkdir -p i18n/zh-CN/docusaurus-plugin-content-blog
- cp -r blog/** i18n/zh-CN/docusaurus-plugin-content-blog
- mkdir -p i18n/zh-CN/docusaurus-plugin-content-pages
- cp -r src/pages/**.md i18n/zh-CN/docusaurus-plugin-content-pages
- cp -r src/pages/**.mdx i18n/zh-CN/docusaurus-plugin-content-pages
ignore_error: true
i18n:fr:
cmds:
- mkdir -p i18n/fr/docusaurus-plugin-content-docs/current
- cp -r docs/** i18n/fr/docusaurus-plugin-content-docs/current
- mkdir -p i18n/fr/docusaurus-plugin-content-blog
- cp -r blog/** i18n/fr/docusaurus-plugin-content-blog
- mkdir -p i18n/fr/docusaurus-plugin-content-pages
- cp -r src/pages/**.md i18n/fr/docusaurus-plugin-content-pages
- cp -r src/pages/**.mdx i18n/fr/docusaurus-plugin-content-pages
deploy:
cmds:
- DEPLOYMENT_BRANCH=gh-pages USE_SSH=true yarn deploy
###########################################################################
quick:
cmds:
- task: commit
- task: commit
ignore_error: true
commit:
cmds:
- git add .
- git commit -m "update"
ignore_error: true
push:
cmds:
- git push origin main --tags
- repo_url=`git remote -v | grep push | awk -F ":" '{print $2}' | awk -F ".git " '{print "https://github.com/"$1}'`; open $repo_url ; echo $repo_url;