@@ -108,9 +108,7 @@ jobs:
108
108
fi
109
109
- name : Prepare deployment files
110
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
111
+ run : touch build/.nojekyll
114
112
- name : Deploy playground to Smalruby.app GitHub Pages
115
113
uses : peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
116
114
if : github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
@@ -123,13 +121,11 @@ jobs:
123
121
- name : Rebuild for smalruby3-gui GitHub Pages
124
122
if : github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
125
123
env :
126
- NODE_OPTIONS : --max-old-space-size=4000
127
- NODE_ENV : production
128
124
PUBLIC_PATH : /smalruby3-gui/
129
- run : npm run build
125
+ run : npm exec node ./scripts/postbuild.mjs
130
126
- name : Prepare deployment files for smalruby3-gui GitHub Pages
131
127
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
133
129
- name : Deploy playground to GitHub Pages
134
130
uses : peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
135
131
if : github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
@@ -151,10 +147,8 @@ jobs:
151
147
startsWith(github.ref, 'refs/heads/renovate/')
152
148
))
153
149
env :
154
- NODE_OPTIONS : --max-old-space-size=4000
155
- NODE_ENV : production
156
150
PUBLIC_PATH : /smalruby3-gui/${{ steps.branch.outputs.BRANCH_NAME }}/
157
- run : npm run build
151
+ run : npm exec node ./scripts/postbuild.mjs
158
152
- name : Prepare deployment files for branch GitHub Pages
159
153
if : |
160
154
(!(
0 commit comments