Skip to content

Commit 13d5ca0

Browse files
committed
fix(workflow): 修复移动端官网action部署失败问题
1 parent 2870c5d commit 13d5ca0

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/auto-deploy-site-alpha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
sudo chmod -R 777 ./_site
4545
cp ./sites/dist/assets/_plugin-vue*.js ./_site/assets
4646
cp ./_site/index.html ./_site/404.html
47-
sed -i 's/\/static/\/tiny-vue-theme-mobile\/static/' ./_site/static/js/design-common.js
47+
sed -i 's/\/static/\/tiny-vue-mobile\/static/' ./_site/static/js/design-common.js
4848
sh ./sites/cp-component-md.sh
4949
- name: Upload artifact
5050
uses: actions/upload-pages-artifact@v3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@commitlint/config-conventional": "^18.4.3",
5555
"@opentiny/vue-mobile": "workspace:~",
5656
"@opentiny/vue-theme-mobile": "workspace:~",
57-
"@opentinyvue/vue-docs": "^3.21.9",
57+
"@opentiny/vue-docs": "^3.25.0",
5858
"@types/color": "^3.0.3",
5959
"@types/eslint": "^8.4.10",
6060
"@types/node": "^18.11.18",

script/preSite.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const mode = process.argv[2] || 'dev'
55
shell.rm('-rf', 'sites')
66

77
// 复制@opentiny/vue-docs包到本地
8-
shell.cp('-R', 'node_modules/@opentinyvue/vue-docs', 'sites')
8+
shell.cp('-R', 'node_modules/@opentiny/vue-docs', 'sites')
99

1010
// 删除一些不需要的依赖
1111
const pkg = JSON.parse(shell.cat('sites/package.json'))
@@ -36,8 +36,8 @@ shell.ShellString(newConfigJs).to(file)
3636

3737
// const mobileVersion = 'latest'
3838
// const themeVersion = 'latest'
39-
const mobileVersion = '1.0.0-alpha.6'
40-
const themeVersion = '3.21.0-alpha.0'
39+
const mobileVersion = '1.0.0-alpha.10'
40+
const themeVersion = '1.0.0-alpha.10'
4141

4242
if (mode === 'alpha') {
4343
const rootPkg = JSON.parse(shell.cat('package.json'))

script/releaseAlpha.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const findAllpage = (packagesPath) => {
1717
} else {
1818
const content = fs.readFileSync(packagesPath).toString('UTF-8')
1919
let result = content
20-
.replace(/\/tiny-vue-web-doc\//g, '/tiny-vue-theme-mobile/')
20+
.replace(/\/tiny-vue-web-doc\//g, '/tiny-vue-mobile/')
2121
.replace(/\.\/examples\/sites\//g, './sites/')
2222

2323
fs.writeFileSync(packagesPath, result)

0 commit comments

Comments
 (0)