Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May not build properly if theme is a submodule #1

Closed
victoriadrake opened this issue Mar 6, 2020 · 0 comments
Closed

May not build properly if theme is a submodule #1

victoriadrake opened this issue Mar 6, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@victoriadrake
Copy link
Owner

The checkout action may not yet fully support submodules. If your site only seems to partially build and is missing pages like index.html, you may need to explicitly pull the theme in your workflow file.

Here's an example that adds the step "Get theme" to clone a theme repository into themes/:

name: hugo-remote

on:
  push:
    branches:
      - master

env:
  REMOTE: opengitdocs/opengitdocs.github.io.git
  DEST: public
  TOKEN: ${{ secrets.TOKEN }}

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - name: 🛎 Check out master
        uses: actions/checkout@master
        with:
          fetch-depth: 1
      - name: 🖌️ Get theme
        run: git clone https://github.com/opengitdocs/hugo.git themes/opengitdocs
      - name: 🚀 Build and deploy
        uses: victoriadrake/hugo-remote@master
@victoriadrake victoriadrake added the documentation Improvements or additions to documentation label Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant