I have some code blocks whose output changes based on side-effects e.g. they might be bash scripts that interact with names of files. How do I tell org-publish to publish a certain file every time from within the file?
of course, I can force publish every time but that wastes time when I could selectively force-publish a couple files. I also want it to be from within the file because editing my emacs configuration rather than editing the file I'm already in is more work.
Assuming that the problem you describe is caused by timestamp checking, you can customize
org-publish-use-timestamps-flagand set it tonil.See Triggering Publication in the manual: