Skip to content

Merge pull request #19 from KrystalSoftwareBangladesh/16-page-terms-o… #16

Merge pull request #19 from KrystalSoftwareBangladesh/16-page-terms-o…

Merge pull request #19 from KrystalSoftwareBangladesh/16-page-terms-o… #16

Workflow file for this run

name: Deploy Frontend
on:
push:
branches:
- dev
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
# 1️⃣ Install pnpm FIRST
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
# 2️⃣ Setup Node.js WITH pnpm cache
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
# 3️⃣ Install dependencies
- name: Install dependencies
run: pnpm install --frozen-lockfile
# 4️⃣ Build
- name: Build project
run: pnpm build
# 5️⃣ Deploy
- name: Deploy dist to server
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }}
source: "dist/*"
target: "/var/www/cits.rkshaon.info"