mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 22:16:07 +01:00
Test no syndication changes build
This commit is contained in:
parent
c135910850
commit
0641a86e5f
1 changed files with 17 additions and 0 deletions
17
.github/workflows/publish.yml
vendored
17
.github/workflows/publish.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue