@@ -11,7 +11,6 @@ concurrency:
1111 cancel-in-progress : false
1212env :
1313 GITHUB_PR_NUMBER : ${{ github.event_name == 'issue_comment' && github.event.issue.number || github.event.pull_request.number }}
14- JEKYLL_ENV : production
1514jobs :
1615 cache-refresh :
1716 if : ${{ !github.event.repository.fork && github.event_name == 'schedule' && github.event.schedule == '0 0 */6 * *' }}
@@ -201,15 +200,6 @@ jobs:
201200 preview-create-build :
202201 needs : preview-create-init
203202 runs-on : ubuntu-latest
204- env :
205- PREVIEW_WATCH :
206- ${{
207- contains(github.event.pull_request.labels.*.name, 'preview/watch') ||
208- contains(github.event.issue.labels.*.name, 'preview/watch') || (
209- github.event_name == 'issue_comment' &&
210- github.event.comment.body == '/preview watch'
211- )
212- }}
213203 outputs :
214204 artifact-id : ${{ steps.upload-site.outputs.artifact-id }}
215205 steps :
@@ -224,22 +214,16 @@ jobs:
224214 git fetch https://github.com/${{ needs.preview-create-init.outputs.repository }} ${{ needs.preview-create-init.outputs.sha }}
225215 git merge --squash ${{ needs.preview-create-init.outputs.sha }} --no-edit
226216 git commit -m "Merge #${{ env.GITHUB_PR_NUMBER }} for preview build"
227- - name : Setup Ruby
228- uses : ruby /setup-ruby@v1
217+ - name : Setup Node
218+ uses : actions /setup-node@v6
229219 with :
230- ruby-version : " 3.4"
231- bundler-cache : ${{ env.PREVIEW_WATCH }}
232- cache-version : PR-${{ env.GITHUB_PR_NUMBER }}
233- - name : Jekyll Build
220+ node-version : 24
221+ - name : Build
234222 run : |
235- echo "url: https://${{ needs.preview-create-init.outputs.domain }}" > _action.yml
236- echo "baseurl: ${{ needs.preview-create-init.outputs.pathname }}/PR${{ env.GITHUB_PR_NUMBER }}" >> _action.yml
237- echo "source: ${{ github.workspace }}" >> _action.yml
238- echo "destination: /home/runner/site" >> _action.yml
239- echo "preview:" >> _action.yml
240- echo " pr-number: ${{ env.GITHUB_PR_NUMBER }}" >> _action.yml
241- ${{ env.PREVIEW_WATCH }} || bundle install --jobs 4
242- bundle exec jekyll build --trace --config _config.yml,_action.yml
223+ npm install
224+ npm run build -- --outDir /home/runner/site
225+ env :
226+ PUBLIC_SITE_URL : https://${{ needs.preview-create-init.outputs.domain }}${{ needs.preview-create-init.outputs.pathname }}/PR${{ env.GITHUB_PR_NUMBER }}
243227 - id : upload-site
244228 name : Upload Site
245229 uses : actions/upload-artifact@v4
0 commit comments