-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 973 Bytes
/
deploy-docs.yml
File metadata and controls
41 lines (33 loc) · 973 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
35
36
37
38
39
40
41
name: Deploy Docs Site to DreamHost
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build docs
run: npm run build
# Optional: sanity check build output
- name: List build output
run: ls -R build
- name: Deploy via SFTP
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
server: ${{ secrets.SFTP_HOST }}
username: ${{ secrets.SFTP_USER }}
password: ${{ secrets.SFTP_PASS }}
port: 22
# Upload the *contents* of build to the docs web root
local_path: './build/*'
remote_path: ${{ secrets.DOCS_SFTP_PATH }}
delete_remote_files: false