Skip to content

Commit 2b714ad

Browse files
takaokoujiclaude
andcommitted
fix: add missing .nojekyll file creation in CI/CD workflow
- Add explicit .nojekyll file creation before each GitHub Pages deployment - Fix "no such file or directory: build/.*" error in peaceiris/actions-gh-pages - Ensure Jekyll is properly disabled for all deployments - Add CNAME creation for smalruby.app deployment This resolves the CI error where the deployment action was trying to copy hidden files that didn't exist in the build directory. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 1a51c3a commit 2b714ad

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ jobs:
106106
if [[ ${{ contains(github.ref, 'hotfix') }} == 'true' ]]; then
107107
sed -e "s|hotfix/REPLACE|${{ github.ref_name }}|" --in-place release.config.js
108108
fi
109+
- name: Prepare deployment files
110+
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
111+
run: |
112+
touch build/.nojekyll
113+
echo "smalruby.app" > build/CNAME
109114
- name: Deploy playground to Smalruby.app GitHub Pages
110115
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
111116
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
@@ -122,6 +127,9 @@ jobs:
122127
NODE_ENV: production
123128
PUBLIC_PATH: /smalruby3-gui/
124129
run: npm run build
130+
- name: Prepare deployment files for smalruby3-gui GitHub Pages
131+
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
132+
run: touch build/.nojekyll
125133
- name: Deploy playground to GitHub Pages
126134
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
127135
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
@@ -147,6 +155,17 @@ jobs:
147155
NODE_ENV: production
148156
PUBLIC_PATH: /smalruby3-gui/${{ steps.branch.outputs.BRANCH_NAME }}/
149157
run: npm run build
158+
- name: Prepare deployment files for branch GitHub Pages
159+
if: |
160+
(!(
161+
github.ref == 'refs/heads/develop' ||
162+
github.ref == 'refs/heads/master' ||
163+
github.ref == 'refs/heads/main' ||
164+
startsWith(github.ref, 'refs/heads/hotfix/') ||
165+
startsWith(github.ref, 'refs/heads/dependabot/') ||
166+
startsWith(github.ref, 'refs/heads/renovate/')
167+
))
168+
run: touch build/.nojekyll
150169
- name: Deploy playground to GitHub Pages for branch
151170
if: |
152171
(!(

0 commit comments

Comments
 (0)