From 13f83f5ab2a20aa1c6d66c4e97fa19791471dd0f Mon Sep 17 00:00:00 2001 From: val213 <1042594899@qq.com> Date: Wed, 25 Sep 2024 17:04:31 +0800 Subject: [PATCH] fix workflow --- .github/workflows/deploy-frontend.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-frontend.yml b/.github/workflows/deploy-frontend.yml index 325ed76..c71826d 100644 --- a/.github/workflows/deploy-frontend.yml +++ b/.github/workflows/deploy-frontend.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '18' - name: Install dependencies run: | @@ -29,11 +29,15 @@ jobs: cd frontend npm run build + - name: List build directory (for debugging) + run: | + ls -la frontend/.output + - name: Upload Vue build artifacts uses: actions/upload-artifact@v3 with: name: vue-build - path: frontend/.output + path: frontend/.output/** deploy: runs-on: ubuntu-latest @@ -49,11 +53,15 @@ jobs: name: vue-build path: frontend/.output + - name: List downloaded artifacts (for debugging) + run: | + ls -la frontend/.output + - name: Deploy Vue frontend env: SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }} run: | echo "$SSH_PRIVATE_KEY" > deploy_key chmod 600 deploy_key - scp -o StrictHostKeyChecking=no -i deploy_key -r frontend/dist/* ibm@123.207.71.173:/usr/share/nginx/html/ibminscut + scp -o StrictHostKeyChecking=no -i deploy_key -r frontend/.output/* ibm@123.207.71.173:/usr/share/nginx/html/ibminscut rm deploy_key \ No newline at end of file