diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index d254148..b5561ea 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -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\]|$SHORT_COMMIT|g" {} + + find ./public -type f -exec sed -i "s|\[commit\]|\[$SHORT_COMMIT\]|g" {} + - name: Deploy uses: peaceiris/actions-gh-pages@v4