Skip to content

feat: add GitHub Actions workflow for build and deployment; remove De… #2

feat: add GitHub Actions workflow for build and deployment; remove De…

feat: add GitHub Actions workflow for build and deployment; remove De… #2

Workflow file for this run

name: "Build and Deploy"
on:
workflow_dispatch:
push:
branches:
- site
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
run_install: true
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build the project
run: pnpm build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
branch: gh-pages
folder: dist
clean: true
clean-exclude: |
.nojekyll