File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments