开发遇到的问题
1.markdown
里想设置文档对应的导航标题可以这样
nav:
title: 组件
2.443 after 21081 ms: Timed out
使用gh-pages
后会导致git的代理出现冲突,所以一直443超时
可以使用下面的命令重置
git config --global --unset http.proxy
git config --global --unset https.proxy
3.本地打包
npm run docs:build
> raetable@0.0.1 docs:build
> dumi build
文件名、目录名或卷标语法不正确。
没找到原因,使用githup cicd workflow自动部署解决了
部署遇到的问题
1.Waiting for a runner to pick up this job
这是因为githup不支持runner运行系统
// 官网给的是这个,过期了
runs-on: ubuntu-18.04
// 修改如下,使用最新版就行了
runs-on: ubuntu-latest
2.Error: Action failed with “The process ‘/usr/bin/git’ failed with exit code 128”
新的部署没有存储权限导致的,可在设置里修改
原文链接:https://juejin.cn/post/7227444929948958781 作者:萌萌哒草头将军