-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (30 loc) · 918 Bytes
/
Copy pathssh_deploy.yml
File metadata and controls
34 lines (30 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy Eleventy via SSH
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE,
# so your workflow can access it
- uses: actions/checkout@master
# Build your static website with Eleventy
- name: Build Eleventy
uses: TartanLlama/actions-eleventy@master
with:
args: --output html
install_dependencies: true
# Copying files and artifacts via SSH
- name: Copying files to server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_KEY_PASSPHRASE }}
rm: true
source: "html/"
target: "${{ secrets.REMOTE_DIR }}"