Merge pull request 'ci: 프론트엔드 CI/CD 배포 워크플로우 추가' (#1) from develop into main
Some checks failed
Build and Deploy Wing-GIS Frontend / build-and-deploy (push) Failing after 7s

This commit is contained in:
htlee 2026-03-31 12:40:01 +09:00
커밋 c1e9d216c1

파일 보기

@ -0,0 +1,39 @@
name: Build and Deploy Wing-GIS Frontend
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Configure npm registry
working-directory: frontend/wing-gis-web
run: |
echo "registry=https://nexus.gc-si.dev/repository/npm-public/" > .npmrc
echo "//nexus.gc-si.dev/repository/npm-public/:_auth=${{ secrets.NEXUS_NPM_AUTH }}" >> .npmrc
- name: Install dependencies
working-directory: frontend/wing-gis-web
run: npm ci
- name: Build
working-directory: frontend/wing-gis-web
run: npm run build
- name: Deploy to server
run: |
rm -rf /deploy/wing-gis/*
cp -r frontend/wing-gis-web/dist/* /deploy/wing-gis/
echo "Deployed at $(date '+%Y-%m-%d %H:%M:%S')"
ls -la /deploy/wing-gis/