yanglbme / gitee-pages-action

🤖 Auto Deploy Gitee Pages by GitHub Action | 无须人为干预,由 GitHub Action 自动部署 Gitee Pages
https://github.com/marketplace/actions/gitee-pages-action
MIT License
664 stars 109 forks source link

error: failed to push some refs to 'gitee.com:hisnxg/hisnxg.git' #60

Closed mynxg closed 1 year ago

mynxg commented 1 year ago

WARNING: StrictHostKeyChecking disabled Cloning into bare repository 'hexo-theme-blog.git'... SOURCE=git@github.com:hisnxg/hexo-theme-blog.git DESTINATION=git@gitee.com:hisnxg/hisnxg.git DRY RUN=false Warning: Permanently added 'github.com' (ED25519) to the list of known hosts. Warning: Permanently added 'gitee.com' (ED25519) to the list of known hosts. remote: Powered by GITEE.COM [GNK-6.4]
remote: error: By default, deleting the current branch is denied, because the next
remote: 'git clone' won't result in any file checked out, causing confusion.
remote: remote: You can set 'receive.denyDeleteCurrent' configuration variable to
remote: 'warn' or 'ignore' in the remote repository to allow deleting the
remote: current branch, with or without a warning message.
remote: remote: To squelch this message, you can set it to 'refuse'.
remote: error: refusing to delete the current branch: refs/heads/gh-pages
To gitee.com:hisnxg/hisnxg.git

mynxg commented 1 year ago

image 错误如上图,在github action时出现这样的错误

yanglbme commented 1 year ago

image

你这里要删除 gh-pages 分支吧,但 Gitee 不允许,可能你 Gitee 仓库把 gh-pages 作为默认分支导致?

mynxg commented 1 year ago

image 是设置为了默认分支导致的。我想部署到gh-pages分支 ,但它想要删除gh-pages,我如何解决呢? 还有就是它部署到gitee上的是我的源代码,而不是构建的后的静态页面。这是为什么呢?

mynxg commented 1 year ago

image

mynxg commented 1 year ago

image

mynxg commented 1 year ago

image 部署上去的都是源代码,不是构建后的代码,很困惑

mynxg commented 1 year ago

image 执行gh-pages分支被自动删除了

mynxg commented 1 year ago

image 这是构建成功了,但仓库没看到构建后的静态页面

mynxg commented 1 year ago

我明白了,github将代码部署到gitee仓库后,选择需要部署的分支,它会将源代码自动构建。 image

yanglbme commented 1 year ago

现在还有问题吗

mynxg commented 1 year ago

没有了,非常感谢