Skip to content

Commit b805e18

Browse files
author
Neo
committed
ci: GitHub Actions build workflow
1 parent 43736b1 commit b805e18

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy to Production
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 22
16+
cache: npm
17+
18+
- run: npm ci
19+
- run: npm run build
20+
21+
- name: Deploy via rsync
22+
uses: burnett01/rsync-deployments@7.0.1
23+
with:
24+
switches: -avz --delete --exclude='api/'
25+
path: dist/
26+
remote_path: /var/www/neo-website/
27+
remote_host: ${{ secrets.DEPLOY_HOST }}
28+
remote_user: ${{ secrets.DEPLOY_USER }}
29+
remote_key: ${{ secrets.DEPLOY_KEY }}

0 commit comments

Comments
 (0)