Skip to content

search

search #75

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ main ] # ื™ืจื•ืฅ ืจืง ื›ืฉื“ื•ื—ืคื™ื ืœ-main
jobs:
build:
runs-on: ubuntu-latest
steps:
# ืฉืœื‘ 1: ืžืฉื™ื›ืช ื”ืงื•ื“ ืžื”ืžืื’ืจ
- name: Checkout repository
uses: actions/checkout@v3
# ืฉืœื‘ 2: ื”ืชืงื ืช Node.js 20
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
# ืฉืœื‘ 3: ื”ืชืงื ืช ื›ืœ ื”ืชืœื•ื™ื•ืช
- name: Install dependencies
run: npm ci
working-directory: ./client
# ืฉืœื‘ 4: ื‘ื ื™ื™ืช ื”ืคืจื•ื™ืงื˜ ืขื Vite
- name: Build project
run: npm run build
working-directory: ./client
# ืฉืœื‘ 5: ืคืจื™ืกื” ืœ-GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .build