wing-ops/.gitea/workflows/deploy.yml
htlee e3b48a13cb
All checks were successful
Build and Deploy Wing-Demo / build-and-deploy (push) Successful in 1m4s
ci: wing-demo 자동 배포 워크플로우 추가
main push 시 frontend 빌드 → wing-demo.gc-si.dev 자동 배포

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 11:37:51 +09:00

41 lines
961 B
YAML

name: Build and Deploy Wing-Demo
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
run: |
echo "registry=https://nexus.gc-si.dev/repository/npm-public/" > frontend/.npmrc
echo "//nexus.gc-si.dev/repository/npm-public/:_auth=${{ secrets.NEXUS_NPM_AUTH }}" >> frontend/.npmrc
- name: Install dependencies
run: |
cd frontend
npm ci
- name: Build frontend
run: |
cd frontend
npx vite build
- name: Deploy
run: |
rm -rf /deploy/wing-demo/*
cp -r frontend/dist/* /deploy/wing-demo/
echo "Deployed at $(date '+%Y-%m-%d %H:%M:%S')"
ls -la /deploy/wing-demo/