Skip to content

Site working on local, how to use github pages ? #842

Closed Answered by mathisgauthey
mathisgauthey asked this question in Q&A
Discussion options

You must be logged in to vote

Alright then, the fix provided by a long discussion with our dear chatGPT helped me :

It seems like the issue with the GitHub Workflow not finding the theme might be related to the submodule not being cloned during the default actions/checkout@v2 step. When you use the actions/checkout@v2, it only clones the main repository, but not the submodules.

To ensure the submodule is also cloned, you need to add an extra step before the actions/checkout@v2. You can use git commands directly in the workflow to ensure the submodule is cloned along with the main repository.

Here's how you can modify your workflow:

yaml

name: Deploy to Github Pages

on:
    push:
        branches: [main]
    pull_requ…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mathisgauthey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant