File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 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 }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments