DEV Community

Discussion on: Deploy to Github Pages like a pro with Github Actions

Collapse
 
jgascue profile image
Javier Gascue • Edited

Thanks for the post, Roland, nice done!
Is exactly what i was looking for, and save me a lot of time for sure :)
Only with the intention of improvement, and for others who may be had the same issue,
there is a little mistake in this line, its miss a "-" in the word worktree:
git --worktree dist add --all Docs (for react: replace dist with build)

should be >>
git --work-tree dist add --all Docs (for react: replace dist with build)
Got me crazy until I realised it

My congrats for the site aswell. Shum Faleminderit!

Collapse
 
the_one profile image
Roland Doda • Edited

Ahh yes, instead of --work-tree was --worktree without the dash. Thanks Javier. The typo is already fixed now.