Skip to content

Commit af50891

Browse files
committed
fix workflow
1 parent 4d44d02 commit af50891

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/deploy-frontend.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Compress build artifacts
3737
run: |
3838
cd frontend
39-
tar -czf nuxt-build.tar.gz .output nuxt.config.ts package.json assets
39+
tar -czf nuxt-build.tar.gz .output nuxt.config.ts package.json assets ecosystem.config.js
4040
4141
- name: List compressed file (for debugging)
4242
run: |
@@ -70,7 +70,6 @@ jobs:
7070
echo "$SSH_PRIVATE_KEY" > deploy_key
7171
chmod 600 deploy_key
7272
scp -o StrictHostKeyChecking=no -i deploy_key nuxt-build.tar.gz [email protected]:/tmp/nuxt-build.tar.gz || { echo 'SCP failed'; exit 1; }
73-
scp -o StrictHostKeyChecking=no -i deploy_key ecosystem.config.js [email protected]:/tmp/ecosystem.config.js || { echo 'SCP failed'; exit 1; }
7473
ssh -o StrictHostKeyChecking=no -i deploy_key [email protected] '
7574
export NVM_DIR="$HOME/.nvm" &&
7675
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&
@@ -82,7 +81,6 @@ jobs:
8281
rm /tmp/nuxt-build.tar.gz &&
8382
cd /usr/share/nginx/html/ibminscut &&
8483
echo "$SSH_PASSWORD" | sudo -S npm install --production &&
85-
echo "$SSH_PASSWORD" | sudo -S mv /tmp/ecosystem.config.js /usr/share/nginx/html/ibminscut/ecosystem.config.js &&
8684
echo "$SSH_PASSWORD" | sudo -S env "PATH=$PATH" pm2 start /usr/share/nginx/html/ibminscut/ecosystem.config.js
8785
' || { echo 'SSH command failed'; exit 1; }
8886
rm deploy_key

0 commit comments

Comments
 (0)