Skip to content

Workflow improvements. #2

Workflow improvements.

Workflow improvements. #2

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: 20
cache: 'npm'
- name: Install modules
run: npm ci
- name: Build
run: ANALYTICS="UA-11153361-29" npm run build
- 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 }}