From 7886d13405f9ce1d3d4887ff4e1411a6cf1f57ef Mon Sep 17 00:00:00 2001 From: Raghu Chagarlamudi Date: Sat, 13 Dec 2025 17:38:57 -0500 Subject: [PATCH] add rc-portfolio and gitea actions --- .gitea/workflows/deploy.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..915aed6 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy Portfolio + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: self-hosted + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm ci + + - name: Build Angular + run: npm run build -- --configuration production + + - name: Deploy to NAS + run: | + echo "Deploy started at $(date)" + rm -rf /volume1/web/www/rc-portfolio/* + cp -r dist/* /volume1/web/www/rc-portfolio/ + echo "Deploy finished at $(date)"