Skip to content

npm run build works #112

npm run build works

npm run build works #112

Workflow file for this run

name: BuildDocusaurus
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.13.0]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# cache: 'npm'
- run: |
cd v2
cd rscg_examples_site
npm i
npm run build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
name: docsv2
path: 'v2/rscg_examples_site/build/*'
retention-days: 1
- name: upload documentation to github pages
run: |
cp -r v2/rscg_examples_site/build/* docs/v2/
- uses: EndBug/add-and-commit@v9
with:
message: 'Deploy documentation'
default_author: github_actions
cwd: './docs'