ae7ddff223
- Fix quotes in workflow. - Add required attribute to contact form fields.
29 lines
700 B
YAML
29 lines
700 B
YAML
name: Build and Deploy Production Site
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
|
|
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 }}
|
|
username: ${{ secrets.USERNAME }}
|
|
password: ${{ secrets.PASSWORD }}
|
|
source: "_site"
|
|
target: "/home/${{ secrets.USERNAME }}/erickruizdechavez.com"
|
|
strip_components: 1
|