Skip to content

refactor: change home screen #154

refactor: change home screen

refactor: change home screen #154

name: Deploy to Production
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: production
defaults:
run:
working-directory: ./
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run build --if-present
- name: Deploy to NameCheap
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
password: ${{ secrets.DEPLOY_PASSWORD }}
port: ${{ secrets.DEPLOY_PORT }}
source: "build/"
target: "public_html"
strip_components: 1
overwrite: true