KevCaz's Website

I now use GitHub Actions to deploy this website (see my previous note about it) and last Monday (two days ago 😃) after I pushed I got an email saying the deployment failed and found the following error message in the console log:

1
##[error]The input 'submodules' is not supported in actions/checkout@v2

Turns out this is because version 2 of checkout does not support submodule yet (see this issue report https://github.com/actions/checkout/issues/81) which I use to install my Hugo Theme. All I had to do was to use a previous version, so I replaced uses: actions/checkout@master by uses: actions/checkout@v1.2.0 in my deploy.yaml file:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: github pages

on:
  push:
    branches:
    - dev

jobs:
  build-deploy:
    runs-on: ubuntu-18.04
    steps:
    - uses: actions/checkout@v1.2.0
      with:
        submodules: true
    - name: Setup Hugo
      uses: peaceiris/actions-hugo@v2.2.2
      with:
        hugo-version: '0.57.2'
        # extended: true
    - name: Build website
      run: hugo --minify
    - name: Deploy website
      uses: peaceiris/actions-gh-pages@v2.5.0
      env:
        ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
        PUBLISH_BRANCH: master
        PUBLISH_DIR: ./public

Hope submodule soon will be supported soon in the new version!