@@ -108,9 +108,7 @@ jobs:
108108 fi
109109 - name : Prepare deployment files
110110 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
111+ run : touch build/.nojekyll
114112 - name : Deploy playground to Smalruby.app GitHub Pages
115113 uses : peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
116114 if : github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
@@ -123,13 +121,11 @@ jobs:
123121 - name : Rebuild for smalruby3-gui GitHub Pages
124122 if : github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
125123 env :
126- NODE_OPTIONS : --max-old-space-size=4000
127- NODE_ENV : production
128124 PUBLIC_PATH : /smalruby3-gui/
129- run : npm run build
125+ run : npm exec node ./scripts/postbuild.mjs
130126 - name : Prepare deployment files for smalruby3-gui GitHub Pages
131127 if : github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
132- run : touch build/.nojekyll
128+ run : rm -f build/CNAME
133129 - name : Deploy playground to GitHub Pages
134130 uses : peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
135131 if : github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
@@ -151,10 +147,8 @@ jobs:
151147 startsWith(github.ref, 'refs/heads/renovate/')
152148 ))
153149 env :
154- NODE_OPTIONS : --max-old-space-size=4000
155- NODE_ENV : production
156150 PUBLIC_PATH : /smalruby3-gui/${{ steps.branch.outputs.BRANCH_NAME }}/
157- run : npm run build
151+ run : npm exec node ./scripts/postbuild.mjs
158152 - name : Prepare deployment files for branch GitHub Pages
159153 if : |
160154 (!(
0 commit comments