Skip to content

Refactor eleventy proposal #8

Refactor eleventy proposal

Refactor eleventy proposal #8

name: Deploy Eleventy on staging via rsync
on:
push:
branches: [staging]
pull_request:
branches: [staging]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Check-out the repository under $GITHUB_WORKSPACE.
- uses: actions/checkout@master
# Build the website with Eleventy.
- name: Building Eleventy…
run: npm i && npm run build
# Rsync files via SSH.
- name: Syncing files with server…
uses: burnett01/rsync-deployments@master
with:
switches: -avzOr --delete --exclude='.htaccess'
path: _site/
remote_path: ${{ secrets.REMOTE_PATH_STAGING }}
remote_host: ${{ secrets.REMOTE_HOST }}
remote_port: ${{ secrets.REMOTE_PORT }}
remote_user: ${{ secrets.REMOTE_USER }}
remote_key: ${{ secrets.REMOTE_PRIVATE_KEY }}
remote_key_pass: ${{ secrets.REMOTE_PRIVATE_KEY_PASS }}