name: gh-pages on: push: branches: - source jobs: deploy: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - name: Checkout submodules shell: bash run: | # If your submodules are configured to use SSH instead of HTTPS please uncomment the following line # git config --global url."https://github.com/".insteadOf "git@github.com:" auth_header="$(git config --local --get http.https://github.com/.extraheader)" git submodule sync --recursive git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: 'latest' - name: Build run: hugo - name: Check themes directory run: | ls themes - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.PUBLISH_TOKEN }} publish_branch: master publish_dir: ./public