File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Eleventy on staging via rsync
2+
3+ on :
4+ push :
5+ branches : [staging]
6+ pull_request :
7+ branches : [staging]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ # Check-out the repository under $GITHUB_WORKSPACE.
14+ - uses : actions/checkout@master
15+
16+ # Build the website with Eleventy.
17+ - name : Building Eleventy…
18+ run : npm i && npm run build
19+
20+ # Rsync files via SSH.
21+ - name : Syncing files with server…
22+ uses : burnett01/rsync-deployments@master
23+ with :
24+ switches : -avzOr --delete --exclude='.htaccess'
25+ path : _site/
26+ remote_path : ${{ secrets.REMOTE_PATH_STAGING }}
27+ remote_host : ${{ secrets.REMOTE_HOST }}
28+ remote_port : ${{ secrets.REMOTE_PORT }}
29+ remote_user : ${{ secrets.REMOTE_USER }}
30+ remote_key : ${{ secrets.REMOTE_PRIVATE_KEY }}
31+ remote_key_pass : ${{ secrets.REMOTE_PRIVATE_KEY_PASS }}
You can’t perform that action at this time.
0 commit comments