From 6ef55a13e375e8537149bc56c77127e73304975d Mon Sep 17 00:00:00 2001 From: BarnacleBoy Date: Tue, 19 May 2026 02:03:43 +0000 Subject: [PATCH] Add staging deployment workflow --- .forgejo/workflows/staging.yml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .forgejo/workflows/staging.yml diff --git a/.forgejo/workflows/staging.yml b/.forgejo/workflows/staging.yml new file mode 100644 index 0000000..af09bee --- /dev/null +++ b/.forgejo/workflows/staging.yml @@ -0,0 +1,35 @@ +name: Deploy to Staging + +on: + push: + branches: + - staging + workflow_dispatch: + +jobs: + deploy: + runs-on: linux-amd64 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.11.0 + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm build:vdn-static + + - name: Deploy to staging + run: | + rm -rf /var/www/staging.viossa.net/* + cp -r apps/vdn-static/dist/* /var/www/staging.viossa.net/ \ No newline at end of file