egg/.github/workflows/gh-pages.yml
William.Tung 45dac62796
ci: upgrade the nodejs version for 'gh-pages' (#5201)
Now the stable version of nodejs is v18, upgrade it to the latest
version to fix the bug of '--openssl-legacy-provider is not allowed in
NODE_OPTIONS' in node v16.
2023-06-06 12:00:29 +08:00

35 lines
762 B
YAML

name: Github Pages
on:
push:
branches: [ master ]
jobs:
Runner:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
node-version: [ 18 ]
steps:
- name: Checkout Git Source
uses: actions/checkout@master
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm i -g npminstall && npminstall
- name: Build Documents
run: npm run site:build && cp vercel.json ./site/dist/vercel.json
- name: Deploy Documents
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site/dist