Skip to content

use publish_dir in action #19

use publish_dir in action

use publish_dir in action #19

Workflow file for this run

name: Deploy Documentation in Github Pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm ci, build and test
run: |
npm install
npm ci
npm run build --if-present
npm test
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./build