From 9fd0567ccf0fec9a1b2363c8fdd02c640f2fa5a6 Mon Sep 17 00:00:00 2001 From: htlee Date: Mon, 16 Feb 2026 07:06:41 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20Gitea=20Actions=20=EC=9E=90=EB=8F=99=20?= =?UTF-8?q?=EB=B9=8C=EB=93=9C/=EB=B0=B0=ED=8F=AC=20=EC=9B=8C=ED=81=AC?= =?UTF-8?q?=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main push 시 모노레포 @wing/web 빌드 후 wing.gc-si.dev에 자동 배포 Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/deploy.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..9401039 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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/