-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.06 KB
/
deploy.yml
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
35
36
37
38
on:
push:
branches:
- 'dev'
jobs:
build:
uses: Codeholics/codeholics/.github/workflows/build.yml@dev
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Site
uses: actions/checkout@v2
with:
ref: dev
path: codeholics
- name: Checkout Plugins
uses: actions/checkout@v2
with:
repository: Codeholics/pelican-plugins
path: pelican-plugins
- name: Build Content
run: |
cd codeholics
pip install -r requirements.txt
pelican ./content
- name: copy files to dev.codeholics.com
uses: burnett01/[email protected]
with:
switches: -avzr --delete
rsh: -oHostKeyAlgorithms=+ssh-rsa
path: "output/*"
remote_host: ${{ secrets.HOST }}
remote_port: ${{ secrets.PORT }}
remote_path: ${{ secrets.DEV_PATH }}
remote_user: ${{ secrets.USERNAME }}
remote_key: ${{ secrets.KEY }}
remote_key_pass: ${{ secrets.PASSPHRASE }}