Skip to content

refactor

refactor #10

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [master]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.5.0
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- run: pnpm build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./dist
branch: gh-pages