How to Prevent Hugo From Publishing Draft Posts Accidentally

See how I added a pre-build step using a Bash script in my Hugo deployment workflow to check for the draft status of Markdown content. By using stricter linting rules than Hugo&rsquo;s default draft behaviour, it can catch and prevent drafts from being accidentally published.