Update build file

This commit is contained in:
Erick Ruiz de Chavez 2021-01-05 16:28:37 -05:00
parent f2f3b996ee
commit 1baa7f5e51

View file

@ -1,31 +1,21 @@
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
name: Build and Deploy site
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
- name: setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
node-version: 14.x
- run: npm ci
- run: npm run build --if-present
- name: SCP Files
- name: deploy site
uses: appleboy/scp-action@v0.1.1
with:
host: ${{ secrets.HOST }}