erick.is/.github/workflows/node.js.yml
Erick Ruiz de Chavez 1baa7f5e51 Update build file
2021-01-05 16:28:37 -05:00

26 lines
652 B
YAML

name: Build and Deploy site
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm ci
- run: npm run build --if-present
- name: deploy site
uses: appleboy/scp-action@v0.1.1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
source: "_site"
target: "/home/${{ secrets.USERNAME }}/beta.erickruizdechavez.com"
strip_components: 1