Skip to content

Commit 07426f2

Browse files
committed
Add manual site deploy workflow (SFTP)
1 parent d7aacda commit 07426f2

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/site.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy Site
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v6
12+
13+
- uses: actions/setup-node@v6
14+
with:
15+
node-version: 24
16+
cache: npm
17+
cache-dependency-path: site/package-lock.json
18+
19+
- name: Install dependencies
20+
run: cd site && npm ci
21+
22+
- name: Build site
23+
run: cd site && npm run build
24+
25+
- name: Deploy via SFTP
26+
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
27+
with:
28+
server: ${{ secrets.SITE_HOST }}
29+
port: ${{ secrets.SITE_PORT || 22 }}
30+
username: ${{ secrets.SITE_USER }}
31+
ssh_private_key: ${{ secrets.SITE_SSH_KEY }}
32+
local_path: ./site/build/
33+
remote_path: ${{ secrets.SITE_PATH }}
34+
sftp_only: true
35+
delete_remote_files: true

0 commit comments

Comments
 (0)