Add new format.
All checks were successful
Hugo Publish CI / build-and-deploy (push) Successful in 12s

This commit is contained in:
Eric X. Liu 2024-09-16 13:08:55 -07:00
parent 248138f653
commit d96148c395

View File

@ -30,7 +30,7 @@ jobs:
run: |
SHORT_COMMIT=$(git rev-parse --short HEAD)
COMMIT_URL="https://git.ericxliu.me/eric/ericxliu-me/commit/$SHORT_COMMIT"
find ./public -type f -exec sed -i "s|\[commit\]|<a href=\"$COMMIT_URL\">$SHORT_COMMIT</a>|g" {} +
find ./public -type f -exec sed -i "s|\[commit\]|<a href=\"$COMMIT_URL\">\[$SHORT_COMMIT\]</a>|g" {} +
- name: Deploy
uses: peaceiris/actions-gh-pages@v4