Test no syndication changes build

This commit is contained in:
JP Hastings-Spital 2023-11-12 08:03:34 +00:00
parent c135910850
commit 0641a86e5f

View file

@ -58,6 +58,23 @@ jobs:
--cacheDir /tmp/hugo/cache \
--minify \
--baseURL "https://www.byjp.me"
- name: Syndicate
run: |
cd tools/syndicate
go run .
if git diff-index --quiet HEAD; then
echo "No syndication changes made"
elif
echo "Committing syndication changes"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "Syndicate[bot]"
git commit -am "Syndicated post references"
git push
// TODO: Do not upload, but without failing
exit 1
fi
- name: Build search index
run: |
# Build the search index
npm_config_yes=true npx pagefind@latest
- name: Upload artifact