Skip to content

build: add deploy action for gh-pages #1

build: add deploy action for gh-pages

build: add deploy action for gh-pages #1

Workflow file for this run

name: Deploy project to gh-pages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install
- name: Build and serve app
run: |
pnpm build
pnpm preview --port 8080
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist