Skip to content

Replace webpack by View + Add workflows. #6

Replace webpack by View + Add workflows.

Replace webpack by View + Add workflows. #6

Workflow file for this run

name: CI-CD
on:
push:
branches:
- master
jobs:
Test:
uses: ./.github/workflows/CI.yaml
Deploy:
runs-on: ubuntu-latest
needs: Test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
cache: 'npm'
- name: Install modules
run: npm ci
- name: Build
run: ANALYTICS="UA-11153361-29" npm run build -- --base="/abandoned-house"
- name: Deploy to production
if: github.ref == 'refs/heads/master'
uses: burnett01/rsync-deployments@6.0.0
with:
switches: -avzr --delete
path: dist/
remote_path: ${{ secrets.DEPLOY_PATH }}
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}