From 119059ea67afad0eb99e3e7dcf49ae6d210cb9b8 Mon Sep 17 00:00:00 2001 From: hamzeh Date: Tue, 13 Jan 2026 02:06:12 +0000 Subject: [PATCH] Copied workflow from CustomsClearance --- .gitea/workflows/websiteDeployer.yaml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.gitea/workflows/websiteDeployer.yaml b/.gitea/workflows/websiteDeployer.yaml index e69de29..dcf9787 100644 --- a/.gitea/workflows/websiteDeployer.yaml +++ b/.gitea/workflows/websiteDeployer.yaml @@ -0,0 +1,32 @@ +name: Build frontend +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v2 + with: + repository: Beilin/CustomsClearanceWeb + github-server-url: http://45.93.137.91:3000 + + + - name: Use Node.js 22.13.1 + uses: actions/setup-node@v1 + with: + node-version: 24.x + - name: Install dependencies + run: npm install + + - name: Generate build + run: npm run build + - name: Copy to Nginx root + run: | + sudo rm -rf /var/www/html/* + sudo cp -r dist/* /var/www/html/ + sudo chown -R www-data:www-data /var/www/html/ + sudo systemctl reload nginx \ No newline at end of file