From fb738acf77199ffe62f3049fdbceccc80df4de11 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Fri, 29 Nov 2024 15:44:13 +0300 Subject: [PATCH] ci: inside subdirectory --- .github/workflows/deploy.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 3ae5666..16cf111 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -27,7 +27,7 @@ jobs: cache: pnpm - name: Install dependencies - run: pnpm install --frozen-lockfile --ignore-scripts + run: cd frontend && pnpm install --frozen-lockfile --ignore-scripts - name: Build run: pnpm run build @@ -42,7 +42,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: static-files - path: dist/ + path: frontend/dist/ if-no-files-found: error deploy-frontend: @@ -62,8 +62,8 @@ jobs: host: ${{ secrets.SSH_HOST }} username: ${{ secrets.SSH_USER }} password: ${{ secrets.SSH_PASSWORD }} - source: "./dist/*" + source: "./frontend/dist/*" target: ${{ secrets.SSH_FRONTEND_DIRECTORY }} - strip_components: 1 + strip_components: 2 overwrite: true rm: true