sinsaludar.com/.github/workflows/build-and-deploy.yml

29 lines
676 B
YAML
Raw Normal View History

2021-09-22 11:44:36 -04:00
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
2022-04-29 15:07:44 -04:00
uses: wlixcc/SFTP-Deploy-Action@v1.2.2
2021-09-22 11:44:36 -04:00
with:
username: ${{ secrets.USERNAME }}
2022-04-29 15:07:44 -04:00
server: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
ssh_private_key: ${{ secrets.KEY }}
2022-04-29 16:43:34 -04:00
local_path: './dist/*'
remote_path: '/html/sinsaludar.com'
2022-04-29 15:19:31 -04:00
sftp_only: true