Reputation: 117
I am trying to deploy my app to git pages and I have status failure for GitHub pages.
When I am start "pages build and deployment
" in Action, I have a next problems:
1) Build > Checkout > Fetching submodules:
/usr/bin/git submodule sync --recursive
/usr/bin/git -c protocol.version=2 submodule update --init --force --depth=1 --recursive
Error: fatal: No url found for submodule path 'dist' in .gitmodules
Error: The process '/usr/bin/git' failed with exit code 128
2)Deploy > Deploy to github pages:
Error: Error: No uploaded artifact was found!
Please check if there are any errors at build step.
Did I do something wrong?
Upvotes: 5
Views: 14221
Reputation: 1328522
Check the content of your .gitmodules
file:
If it includes only one entry [submodule "dist"]
, with a module path dist
, without URL,
then delete the .gitmodules
file entirely, add, and commit.
(Note: as in here, check if you have a dist
(no trailing slash) entry, and remove it if you do: git rm --cached -- dist
).
Then try again the deployment process.
A valid .gitmodules
entry should have both URL and path:
[submodule "dist"]
path = dist
url = git://github.com/user/repo.git
Upvotes: 3