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

28 lines
631 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
uses: appleboy/scp-action@v0.1.1
with:
host: ${{ secrets.HOST }}
2022-04-24 10:58:22 -04:00
port: ${{ secrets.PORT }}
2021-09-22 11:44:36 -04:00
username: ${{ secrets.USERNAME }}
2022-04-24 10:58:22 -04:00
key: ${{ secrets.KEY }}
source: index.html,styles.css
target: ${{ secrets.TARGET }}