Skip to content

Commit

Permalink
Fix path app.zip to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
WalissonPires committed Jan 28, 2024
1 parent 1236a74 commit 0e8c5f1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,20 @@ jobs:
- name: Build
run: npm run build

- name: Show files
run: ls -al

- name: Copy missing folders
run: |
cp -r ./public ./.next/standalone/
cp -r ./.next/static ./.next/standalone/.next/
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
Expand All @@ -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
Expand Down

0 comments on commit 0e8c5f1

Please sign in to comment.