
Github Action相关配置备份
引用站外链接
使用Github
Action实现全自动部署
提交仓库必备环境变量
GITHUBUSERNAME
GITHUBEMAIL
GITHUBTOKEN
设置远程仓库和分支
[Blogroot]/.gitignore文件应为以下内容
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
.deploy_git*/
.idea
themes/butterfly/.git
初次连接仓库
git init
git remote add origin git@github.com:[GithubUsername]/[SourceRepo].git
git checkout -b master
提交变更方法
git add .
git commit -m "github action update"
git push origin master
回退版本
git reset --hard
请在该指令后添加github仓库版本ID
Github提示版本升级
合并pull request后,在本地执行git pull
查看本地hexo版本
npx hexo -v
执行升级
npm i --save
如需换源可尝试
>npm config set registry https://registry.npmmirror.com
成功后检查本地版本
npx hexo -v
hexo-bilibili-bangumi
在hexo generate或hexo deploy之前使用hexo bangumi -u命令更新追番数据,使用hexo cinema -u命令更新追剧数据!
- 感谢您的赞赏
赞赏名单
因为有你们,让我更加有创作的动力
本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自❖星港◎Star☆
评论 ()