各位老铁们好,相信很多人对基于vuepress的静态网站源码分享都不是特别的了解,因此呢,今天就来为大家分享下关于基于vuepress的静态网站源码分享以及vuepress github action的问题知识,还望可以帮助大家,解决大家的一些困惑,下面一起来看看吧!
vuepress提供了几种部署方法,有本地脚本、TravisCI、Netlify,但是不能完全满足我的需求。所以我开发了一个vuepress-deploy的自动化部署工具。可以去GitHubAction市场查看:https://github.com/marketplace/actions/vuepress-deploy
使用示例
仓库:
示例源码仓库:https://github.com/jenkey2011/vuepress-deploy-demo示例目标仓库:https://github.com/jenkey2011/vuepress-deploy-demo-target
对应情况与部署文件设置:
ATOA:gh_pages:deploy-to-current-repo-gh_pages.ymlATOB:master:deploy-to-other-repo-master.ymlATOB:custom_branch:deploy-to-other-repo-custom_branch.yml
效果查看:
部署任务详情:https://github.com/jenkey2011/vuepress-deploy-demo/actionsATOA:gh_pages:https://github.com/jenkey2011/vuepress-deploy-demo/tree/gh_pagesATOB:master:https://github.com/jenkey2011/vuepress-deploy-demo-target/tree/masterATOB:custom_branch:https://github.com/jenkey2011/vuepress-deploy-demo-target/tree/custom_branch
详细教程
创建secrets
END,本文到此结束,如果可以帮助到大家,还望关注本站哦!
