From 42e4f0b8f1314377c3300b4d97a94b01e3d86738 Mon Sep 17 00:00:00 2001 From: hyoseung930 <35983843+hyoseung930@users.noreply.github.com> Date: Thu, 14 May 2026 13:40:06 +0900 Subject: [PATCH] ci: add self-hosted runner deploy workflow --- .gitea/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..8138f8d --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Build and Deploy + +on: + push: + branches: + - main + +jobs: + build-and-deploy: + runs-on: self-hosted + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Deploy + run: | + rm -rf /home/hyoseung/english/front/dist + cp -r dist/ /home/hyoseung/english/front/dist/ + echo "Frontend deployed successfully"