mirror of
https://github.com/OpenListTeam/OpenList-Frontend.git
synced 2026-03-15 03:20:25 +00:00
ci: use actions for crowdin sync
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
||||
run: |
|
||||
cd alist-web
|
||||
pnpm install
|
||||
pnpm i18n
|
||||
pnpm i18n:build
|
||||
pnpm build
|
||||
cd ..
|
||||
env:
|
||||
|
||||
@@ -19,8 +19,11 @@
|
||||
],
|
||||
"homepage": "https://alist.nn.ci",
|
||||
"scripts": {
|
||||
"crowdin": "crowdin download",
|
||||
"i18n": "pnpm crowdin -b main --verbose && node ./scripts/i18n.mjs",
|
||||
"crowdin:upload": "crowdin upload sources --auto-update",
|
||||
"crowdin:download": "crowdin download --verbose",
|
||||
"crowdin": "pnpm crowdin:upload && pnpm crowdin:download",
|
||||
"i18n:build": "pnpm crowdin && node ./scripts/i18n.mjs",
|
||||
"i18n:release": "pnpm run crowdin:download && node ./scripts/i18n.mjs",
|
||||
"start": "vite",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
|
||||
@@ -6,7 +6,7 @@ cat package.json
|
||||
|
||||
# build
|
||||
pnpm install
|
||||
pnpm i18n
|
||||
pnpm i18n:release
|
||||
pnpm build
|
||||
cp -r dist ../
|
||||
cd ..
|
||||
|
||||
Reference in New Issue
Block a user