masasam / emacs-easy-hugo

Emacs major mode for managing hugo
https://gohugo.io/tools/editors/#emacs
GNU General Public License v3.0
362 stars 26 forks source link

deploy.sh? #75

Closed summeremacs closed 1 year ago

summeremacs commented 1 year ago

Hi, I'm stumped about the deploy.sh part. The link about the password thing goes to a really old post. Plus, is it even deploy.sh anymore? Cuz I set mine up with .github/workflows/hugo.yaml ? As it says in https://gohugo.io/hosting-and-deployment/hosting-on-github/

So my question is: what do I do for deploy.sh? Is there a config I can copy/paste/edit? I'm really confused. I want to use easy-hugo because then I can write in org-mode instead of markdown. But it won't deploy at all so I don't know what to do.

Thx for any help.

masasam commented 1 year ago

Hi @summeremacs ! Thank you for comment. If you use .github/workflows/hugo.yaml, GitHub Actions will work, so you don't need deploy.sh.

summeremacs commented 1 year ago

Thanks! But when I hit "G" for github deploy in easy-hugo, I get the following message in the minibuffer (and it doesn't deploy):

easy-hugo-github-deploy: /Users/summer/Documents/site/summeremacs/deploy.sh do not execute

masasam commented 1 year ago

Since you use GitHub Actions, I think that it will be deployed if you commit with "M" (magit) instead of "G".

summeremacs commented 1 year ago

TYSM! It works! 🙃 TY again. 😀