Skip to content

Commit cdd7e7e

Browse files
author
Dennis Philipps
committed
fix: correctly deploy frontend build output by moving it to the root and expanding rsync exclusions.
1 parent 33d343a commit cdd7e7e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/deploy-demo.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
run: |
2424
npm ci
2525
npm run build
26+
# Move compiled frontend to root so rsync uploads it to the base path
27+
rsync -a dist/ ./
2628
2729
- name: Deploy via rsync
2830
uses: easingthemes/ssh-deploy@v5.0.3
@@ -33,7 +35,7 @@ jobs:
3335
TARGET: "/home/philippsnesterdemo/web/nester-demo/"
3436
REMOTE_HOST: ${{ secrets.DEMO_HOST }}
3537
REMOTE_USER: ${{ secrets.DEMO_USERNAME }}
36-
EXCLUDE: "/node_modules/, /.git/, /.github/, /src/, /public/, /vite.config.js, /package.json, /package-lock.json, /README.md, /eslint.config.js, /docs/, /CONTRIBUTING.md, /sync_www.command, /backend/uploads/, /backend/create_admin.php, /.DS_Store, /.env"
38+
EXCLUDE: "/node_modules/, /.git/, /.github/, /src/, /public/, /vite.config.js, /package.json, /package-lock.json, /README.md, /eslint.config.js, /docs/, /CONTRIBUTING.md, /sync_www.command, /backend/uploads/, /backend/create_admin.php, /.DS_Store, /.env, /dist/, /INSTALLATION.md, /LICENSE, /.gitignore, /.env.example"
3739

3840
- name: Redeploy Database & Set Permissions
3941
uses: appleboy/ssh-action@v1.0.3

0 commit comments

Comments
 (0)