From 6e5915b8cb8c074b910b94e56034474bf60f9090 Mon Sep 17 00:00:00 2001 From: Arne Vlaeminck Date: Mon, 3 Feb 2025 20:21:26 +0100 Subject: [PATCH] Added prod deply --- .gitea/workflows/deploy.yaml | 11 +++++++++-- package.json | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 51eb3b7..d6ea20a 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -17,7 +17,14 @@ jobs: apt-get update apt-get install -y smbclient + - name: install dependencies + run: | + npm ci + + - name: build application + run: | + npm run prod:deploy + - name: Copy run: | - smbclient //192.168.129.245/arne -U "${{ secrets.SAMBA_USER }}" "${{ secrets.SAMBA_PASSWORD }}" -c "cd \"letsencrypt/config/www\"; lcd \".\"; prompt; recurse; mput *" - + smbclient //192.168.129.245/arne -U "${{ secrets.SAMBA_USER }}" "${{ secrets.SAMBA_PASSWORD }}" -c 'prompt OFF; recurse ON; cd letsencrypt/config/www/cptarn/; lcd dist/cpt-arn/browser/; mput *' diff --git a/package.json b/package.json index 1eca6e6..6ccfcb0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test", - "dev:deploy": "ng build --configuration=production --base-href /dev/ --deploy-url /dev/ && npx gzipper compress ./dist" + "dev:deploy": "ng build --configuration=production --base-href /dev/ --deploy-url /dev/ && npx gzipper compress ./dist", + "prod:deploy": "ng build --configuration=production --base-href / --deploy-url / && npx gzipper compress ./dist" }, "private": true, "dependencies": {