From aa9ff4ec6c352168404d909b87b807a873f2bdf6 Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 14 Jun 2025 18:06:24 +0900 Subject: [PATCH] fix: update GitHub Actions OAuth build process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/cloudflare-pages.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cloudflare-pages.yml b/.github/workflows/cloudflare-pages.yml index d34144d..da166f7 100644 --- a/.github/workflows/cloudflare-pages.yml +++ b/.github/workflows/cloudflare-pages.yml @@ -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