Skip to content

Merge pull request #164 from mrwweb/patch-2 #99

Merge pull request #164 from mrwweb/patch-2

Merge pull request #164 from mrwweb/patch-2 #99

Workflow file for this run

name: Deploy Production Website
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install NPM Dependencies
run: npm ci
- name: Build Assets
run: npm run build
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: unnecessary
config: |
Host *
StrictHostKeyChecking no
- name: Deploy Website
run: rsync -vrxc --delete build/ [email protected]:/var/www/gutenberg.10up.com/