ci: Gitea Actions 자동 빌드/배포 워크플로우 추가 #1

병합
htlee codex/subcables-static 에서 develop 로 16 commits 를 머지했습니다 2026-02-16 07:16:47 +09:00
Showing only changes of commit 9fd0567ccf - Show all commits

파일 보기

@ -0,0 +1,36 @@
name: Build and Deploy Wing
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/" > .npmrc
echo "//nexus.gc-si.dev/repository/npm-public/:_auth=${{ secrets.NEXUS_NPM_AUTH }}" >> .npmrc
- name: Install dependencies
run: npm ci
- name: Build web
run: npm -w @wing/web run build
- name: Deploy to server
run: |
rm -rf /deploy/wing/*
cp -r apps/web/dist/* /deploy/wing/
echo "Deployed at $(date '+%Y-%m-%d %H:%M:%S')"
ls -la /deploy/wing/