Skip to content

GitHub Action 在生成页面的过程中抛出No Layout导致所有页面变成0字节 #103

Discussion options

You must be logged in to vote
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2

actions/checkout 已经默认在本地 clone 了该项目,无需

       run: |
          git clone https://github.com/EdenJohnson2006/BlogBackup.git gitblog
          cd gitblog

只需

       run: |
          git clone -b master https://github.com/YunYouJun/hexo-theme-yun themes/yun

然后生成文件即可。

https://github.com/EdenJohnson2006/BlogBackup/blob/90264fd01055da9bba33201a3956fe015705819f/.github/workflows/deploy.yml#L23

可以直接参考我的配置使用 submodule (去除 algolia)

https://github.com/YunYouJun/yunyoujun.github.io/blob/hexo/.github/workflows/gh-pages.yml

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Eden7Ba23
Comment options

Answer selected by Eden7Ba23
Comment options

You must be logged in to vote
1 reply
@bigcyy
Comment options

Comment options

You must be logged in to vote
1 reply
@YunYouJun
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants