We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43736b1 commit b805e18Copy full SHA for b805e18
1 file changed
.github/workflows/deploy.yml
@@ -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
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