Skip to content

Commit b202c6f

Browse files
committed
attempt to fix issue where changes to build are not reflected on server
1 parent 647de6b commit b202c6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-and-deploy.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
name: Deploy to VPS
3434
needs: build
3535
steps:
36+
- uses: actions/checkout@v4
3637
- name: Download build artifacts
3738
uses: actions/download-artifact@v4
3839
with:
3940
name: app-build
4041
path: ./.output
41-
- uses: actions/checkout@v4
4242
- name: Deploy to VPS
4343
uses: appleboy/scp-action@v1
4444
with:
@@ -47,9 +47,10 @@ jobs:
4747
key: ${{ secrets.SSH_KEY }}
4848
port: ${{ secrets.SSH_PORT }}
4949
passphrase: ${{ secrets.SSH_PASSPHRASE }}
50-
source: "./.output,./src,./public,./mdx,./package.json,./package-lock.json,./vite.config.ts,./tsconfig.json,./nginx"
50+
source: "./.output,./src,./public,./mdx,./nginx,./package.json,./package-lock.json,./vite.config.ts,./tsconfig.json,./docker-compose.yml,./Dockerfile"
5151
target: "~/sourcedepth.com/"
5252
overwrite: true
53+
rm: true
5354
- name: Build and restart Docker containers
5455
uses: appleboy/ssh-action@v1
5556
with:

0 commit comments

Comments
 (0)