Skip to content

Commit 32dab09

Browse files
authored
OPS [DOCS] Add DreamHost deploy pipeline for Dyno docs at /docs 🦕🚀
1 parent 4b34659 commit 32dab09

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy Docs Site to DreamHost
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: 'npm'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Build docs
25+
run: npm run build
26+
27+
# Optional: sanity check build output
28+
- name: List build output
29+
run: ls -R build
30+
31+
- name: Deploy via SFTP
32+
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
33+
with:
34+
server: ${{ secrets.SFTP_HOST }}
35+
username: ${{ secrets.SFTP_USER }}
36+
password: ${{ secrets.SFTP_PASS }}
37+
port: 22
38+
# Upload the *contents* of build to the docs web root
39+
local_path: './build/*'
40+
remote_path: ${{ secrets.DOCS_SFTP_PATH }}
41+
delete_remote_files: false

0 commit comments

Comments
 (0)