all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* run shell command after publishing project
@ 2017-12-08 19:28 Matt Price
  2017-12-08 19:58 ` Kaushal Modi
  2017-12-19 11:37 ` Rasmus
  0 siblings, 2 replies; 6+ messages in thread
From: Matt Price @ 2017-12-08 19:28 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

Hi everyone,
Feeling a little rude after a long absence in which I dropped all my
non-work commitments -- but still here to ask a question!

I'm setting up a new workflow using Kauhsal's ox-hugo.  I keep all my
course materials in a few org files & publish to hugo-flavoured markdown.
My source materials live in one git repo, and my website in another.  After
exporting any of my my courses to the local hugo directory, I'd like to run
a shell script that I'll keep in my org-files directory.

That script
- cds to the website repo directory, commits changes to the website master
branch, - runs hugo,
- switches to the "public" directory of compiled html pages, which has a
worktree checked out to  the  gh-pages branch,
- commits changes there as well, and then
- pushes both branches to github.

The script seems to work OK, and now I would like to run it every time I
export from the appropriate projects. Is there a good way for me to do
this? I guess a hook that only runs under certain conditions?

If I can get this to work, and then also auto export every time I commit
the org-files to master (maybe with a post-commit git hook of ~emacsclient
-e '(org-publish-project "course1"~ ?), then I will maybe be almost happy!

thanks as always,
matt

[-- Attachment #2: Type: text/html, Size: 1570 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-19 11:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-08 19:28 run shell command after publishing project Matt Price
2017-12-08 19:58 ` Kaushal Modi
2017-12-08 21:37   ` Matt Price
2017-12-08 22:19     ` Kaushal Modi
2017-12-18 22:21       ` Matt Price
2017-12-19 11:37 ` Rasmus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.