Skip to content

Commit

Permalink
Fix that the last build is not deleted when deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Dec 20, 2023
1 parent bfb24ed commit 9161446
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,9 @@ jobs:
-o StrictHostKeyChecking=no \
-p ${{ secrets.PROD_CLOUD_SSH_PORT }} \
${{ secrets.PROD_CLOUD_SSH_URI }} <<END
shopt -s extglob
cd "${{ secrets.PROD_CLOUD_PROJECT_ROOT }}/${{ inputs.package }}"
pm2 delete mzg.fan-${{ inputs.package }}
rm -fr !(build.tar.zst)
rm -fr .output ecosystem.config.js
zstd -d build.tar.zst
tar -xvf build.tar
rm -f build.tar.zst build.tar
Expand Down

0 comments on commit 9161446

Please sign in to comment.