Skip to content

Commit ba97d19

Browse files
committed
feat: move to hetzner managed
1 parent aa2d0be commit ba97d19

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Deploy to production
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
6-
- master
7+
- main
78

89
jobs:
910
deploy:
@@ -12,11 +13,19 @@ jobs:
1213
steps:
1314
- uses: actions/checkout@master
1415

15-
- name: executing remote upgrade
16-
uses: appleboy/[email protected]
16+
- name: Use Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20.x'
20+
- run: npm ci
21+
- run: npm run build --if-present
22+
23+
- name: copy compiled assets to remote
24+
uses: appleboy/scp-action@v4
1725
with:
1826
host: ${{ secrets.DEPLOY_HOST }}
1927
username: ${{ secrets.DEPLOY_USERNAME }}
2028
key: ${{ secrets.DEPLOY_SSH_KEY }}
2129
port: ${{ secrets.DEPLOY_PORT }}
22-
script: cd /var/www/docs.flarum.org && ./deploy.sh
30+
source: build
31+
target: public_html/docs.flarum.org

0 commit comments

Comments
 (0)