From 0429e2970ccd51e1cd363b5b87851b7fe96f2c5f Mon Sep 17 00:00:00 2001 From: Arne Vlaeminck Date: Tue, 22 Oct 2024 21:56:21 +0200 Subject: [PATCH] added auto deploy --- .gitea/workflows/deploy-dev.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/deploy-dev.yaml diff --git a/.gitea/workflows/deploy-dev.yaml b/.gitea/workflows/deploy-dev.yaml new file mode 100644 index 0000000..c3b27f7 --- /dev/null +++ b/.gitea/workflows/deploy-dev.yaml @@ -0,0 +1,30 @@ +name: Copy Files to Samba Share dev +on: + push: + branches: + - main + +jobs: + copy_files: + name: Copy Files + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install smbclient + run: | + apt-get update + apt-get install -y smbclient + + - name: Install dependencies + run: | + npm ci + + - name: Build application + run: | + npm run build -- --configuration production --base-href /ontvlambaar/ + + - name: Copy + run: | + smbclient //192.168.129.245/homes/arne -U "${{ secrets.SAMBA_USER }}" "${{ secrets.SAMBA_PASSWORD }}" -c "cd \"letsencrypt/config/www/cptarn/ontvlambaar\"; lcd \"dist/ontvlambaar/\"; prompt; recurse; mput *"