Merge pull request #1122 from jonnybarnes/1104-ensure-deployments-dont-fail

ci: Optimize GitHub Actions deployment workflow
This commit is contained in:
Jonny Barnes 2023-11-11 19:19:30 +00:00 committed by GitHub
commit 6cf4c26327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,5 +140,5 @@ jobs:
username: ${{ secrets.DEPLOYMENT_USER }}
key: ${{ secrets.DEPLOYMENT_KEY }}
script: |
fd '.+' ${{ env.releasesDir }} -d 1 | head -n -3 | xargs -d "\n" -I'{}' sudo chown -R ${{ secrets.DEPLOYMENT_USER }}:${{ secrets.DEPLOYMENT_USER }} {}/bootstrap/cache;
fd '.+' ${{ env.releasesDir }} -d 1 | head -n -3 | xargs -d "\n" -I'{}' rm -rf {};
fd '.+' ${{ env.releasesDir }} -d 1 | head -n -3 | xargs -d "\n" -I'{}' sudo chown -R ${{ secrets.DEPLOYMENT_USER }}:${{ secrets.DEPLOYMENT_USER }} {}
fd '.+' ${{ env.releasesDir }} -d 1 | head -n -3 | xargs -d "\n" -I'{}' rm -rf {}