From 0e8c5f1ac7042e63d73edb63a816d782204c630a Mon Sep 17 00:00:00 2001 From: "Walisson Pires R. Miranda" Date: Sun, 28 Jan 2024 20:45:57 -0300 Subject: [PATCH] Fix path app.zip to upload --- .github/workflows/deploy.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2447500..7d58ba4 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -25,9 +25,6 @@ jobs: - name: Build run: npm run build - - name: Show files - run: ls -al - - name: Copy missing folders run: | cp -r ./public ./.next/standalone/ @@ -35,7 +32,13 @@ jobs: cp -r ./prisma ./.next/standalone/ - name: Zip App - run: zip -r app.zip ./.next/standalone + run: zip -r ./app.zip ./.next/standalone + + - name: Show repo files + run: ls -al . + + - name: Show output files + run: ls -al ./.next/standalone - name: Upload zip App to server uses: appleboy/scp-action@v0.1.7 @@ -45,7 +48,7 @@ jobs: key: ${{ secrets.KEY }} passphrase: ${{ secrets.PASSPHRASE }} port: ${{ secrets.PORT }} - source: "./.next/standalone/app.zip" + source: "./app.zip" target: ${{ secrets.APP_PATH }} - name: Run commands in server