sinsaludar.com/.github/workflows/build-and-deploy.yml
2022-04-24 10:58:22 -04:00

27 lines
631 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 }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: index.html,styles.css
target: ${{ secrets.TARGET }}