Skip to content

Commit f7fc838

Browse files
committed
deploy action
1 parent 2b545ea commit f7fc838

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Deploy to Hetzner
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: pnpm/action-setup@v4
15+
with:
16+
version: latest
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: lts/*
20+
cache: pnpm
21+
- run: pnpm install --frozen-lockfile
22+
- run: pnpm run build
23+
- uses: wlixcc/[email protected]
24+
with:
25+
username: ${{ secrets.USERNAME }}
26+
server: ${{ secrets.HOSTNAME }}
27+
port: 22
28+
local_path: ./dist/*
29+
remote_path: /public_html
30+
sftp_only: true
31+
password: ${{ secrets.PASSWORD }}

0 commit comments

Comments
 (0)