29 lines
719 B
YAML
29 lines
719 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: milanmk/actions-file-deployer@master
|
|
with:
|
|
remote-protocol: 'sftp'
|
|
remote-host: ${{ secrets.HOST }}
|
|
remote-port: ${{ secrets.PORT }}
|
|
remote-user: ${{ secrets.USERNAME }}
|
|
ssh-private-key: ${{ secrets.KEY }}
|
|
sync: full
|
|
local-path: ./dist/
|
|
remote-path: /html/sinsaludar.com
|