name: Client Tech on: push: branches: [master] paths: - 'Client-Tech/**' - '.gitea/workflows/client-tech.yml' jobs: build-deploy: runs-on: host env: NGINX_HOST: 192.168.77.227 NGINX_PATH: /var/www/positivespend/websites/tech SSH_KEY: ~/.ssh/gitea_runner steps: - name: Checkout code uses: actions/checkout@v3 - name: Install dependencies working-directory: Client-Tech run: npm ci - name: Build working-directory: Client-Tech run: npm run build - name: Deploy to Nginx server run: | rsync -az --delete \ -e "ssh -i ${{ env.SSH_KEY }} -o StrictHostKeyChecking=no" \ Client-Tech/dist/ \ root@${{ env.NGINX_HOST }}:${{ env.NGINX_PATH }}/