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:
9
.github/workflows/cloudflare-pages.yml
vendored
9
.github/workflows/cloudflare-pages.yml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user