fix: update GitHub Actions OAuth build process

Follow run.zsh pattern for OAuth asset copying:
- Remove old assets directory completely
- Copy all dist/* to static/
- Copy index.html to oauth-assets.html template

This should fix the OAuth comment system JS loading issue.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-06-14 18:06:24 +09:00
parent 671a3194af
commit aa9ff4ec6c

View File

@@ -34,9 +34,12 @@ jobs:
- name: Copy OAuth build to static
run: |
mkdir -p my-blog/static/assets
cp -r oauth/dist/assets/* my-blog/static/assets/
cp oauth/dist/index.html my-blog/static/oauth/index.html || true
# Remove old assets (following run.zsh pattern)
rm -rf my-blog/static/assets
# Copy all dist files to static
cp -rf oauth/dist/* my-blog/static/
# Copy index.html to oauth-assets.html template
cp oauth/dist/index.html my-blog/templates/oauth-assets.html
- name: Cache ailog binary
uses: actions/cache@v4