Maintained by James Ives: https://jamesiv.es Getting Started Guide: https://github.com/JamesIves/github-pages-deploy-action ❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issuesChecking configuration and starting /usr/bin/git checkout -b github-pages-deploy-action/srlubmjwhSwitched to a new branch 'github-pages-deploy-action /usr/bin/git push --force ***github.com/javadirection/javadirection.github.io.git github-pages-deploy-action
www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html # 参考地址2: https://github.com/JamesIves/github-pages-deploy-action
我们选用一个别人已经写好的 action:JamesIves/github-pages-deploy-action,它提供了 workflow 的范例文件,直接拷贝过来就行了(查看源码)。 第二步是构建和部署,使用的 action 是JamesIves/github-pages-deploy-action。
Github 菜单位置: 项目/Settings/Secrets/New repository secret 建议命名为PRIVATE_KEY,并粘贴秘钥保存 扩展五、Github生成个人访问令牌 github-pages-deploy-action
上面已经提到GitHub有一个官方的市场,这里我们直接采用的是JamesIves/github-pages-deploy-action: name: GitHub Actions Build and Deploy