mirror of
https://github.com/eggjs/egg.git
synced 2024-12-04 07:14:30 +00:00
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.
35 lines
762 B
YAML
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
|