# shaojiemike @ snode6 in ~/github [18:01:22] $ npx hexo init hugoMinos FATAL ~/github/hugoMinos not empty, please run `hexo init` on an empty folder and then copy your files into it
So create in another place and move necessary files
1 2 3 4 5 6 7
$ npx hexo init hugoMinos-bk $ cd hugoMinos-bk
# vim _config.yml change theme to icarus cp _config.yml ../hugoMinos cp _config.icarus.yml ../hugoMinos cp package.json ../hugoMinos
Github Action for Github Pages
Using eaceiris/actions-gh-pages@v3 deploy ./public directory to the remote gh-pages branch.^1
title
1 2 3 4 5 6 7
# deploy to another branch of current repository -name:Deploy uses:peaceiris/actions-gh-pages@v3 with: github_token:${{secrets.GITHUB_TOKEN}} publish_dir:./public publish_branch:gh-pages-hexo# default: gh-pages
But cloudflare pages can not deploy two pages on the same repository. So we need to push the static html to another repository.[^2]