我的github页面链接到主分支的根。我想让github诉讼从那个说明/中创建一个子文件夹,并显示我的开发分支。没有递归的头痛,这甚至可能吗? GitHub动作似乎可以使用,我已经能够使用CheckOutV3,但这意味着在我的开发分支机构上进行了更改。如何在分支之间有效复制?这只是为了使页面工作,我可能必须重新考虑我的git策略吗?
I have my github pages linked to the root of my master branch. I would like to have a github action create a subfolder off of that say dev/ and have that show my development branch. Without getting recursive headaches is this even possible? Github actions seem to work, i've been able to use checkoutv3 but that means changes are made on my development branch. How do I effectively copy between branches? This is just to get pages to work, I may have to rethink my git strategy?
发布评论
评论(1)
考虑到“ github页面现在使用操作默认“(8月10日),检查一个 github页面出版物的启动工作流可以使用您想要的分支直接使用您想要的分支。
您可以调整这些YML工作流量文件以引用正确的分支,而无需从一个分支复制到另一个分支。
博客文章补充说:
Considering that "GitHub Pages now uses Actions by default" (Aug. 10), check if one of the starter workflow for GitHub Pages publication can work for you using the branch you want directly.
You can adapt those yml workflow files to reference the right branch, without having to copy from one to another.
The blog post adds: