Skip to content

Commit 61bbeff

Browse files
committed
chore: Deploy to self-hosted prod.
1 parent 325757c commit 61bbeff

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy Eleventy on prod via rsync
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-olatest
12+
steps:
13+
# Check-out the repository under $GITHUB_WORKSPACE.
14+
- uses: actions/checkout@master
15+
16+
- name: Install dependencies.
17+
run: npm ci
18+
19+
- name: Lint with fix.
20+
run: npx eslint --fix
21+
22+
# Build the website with Eleventy.
23+
- name: Build Eleventy.
24+
run: npm run build
25+
26+
# Rsync files via SSH.
27+
- name: Sync files with server.
28+
uses: burnett01/rsync-deployments@master
29+
with:
30+
switches: -rlD --delete --exclude='.htaccess'
31+
path: _site/
32+
remote_path: ${{ secrets.REMOTE_PATH_PROD }}
33+
remote_host: ${{ secrets.REMOTE_HOST }}
34+
remote_port: ${{ secrets.REMOTE_PORT }}
35+
remote_user: ${{ secrets.REMOTE_USER }}
36+
remote_key: ${{ secrets.REMOTE_PRIVATE_KEY }}
37+
remote_key_pass: ${{ secrets.REMOTE_PRIVATE_KEY_PASS }}

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)