Skip to content

ci: added deploy to gh-pages in deploy workflow #4

ci: added deploy to gh-pages in deploy workflow

ci: added deploy to gh-pages in deploy workflow #4

Workflow file for this run

name: Build and Deploy on GitHub Pages
on: ["push", "pull_request"]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Node.js environment
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
with:
node-version: "20.x"
- name: Install dependencies
run: |
cd utils-docs
npm install
- name: Build
run: |
cd utils-docs
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./utils-docs/build