Merge pull request #164 from mrwweb/patch-2 #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |