Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marksuth committed Aug 30, 2024
1 parent 2c90a24 commit 5a52fb4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,16 @@ jobs:
ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
- name: Deploying updates to site
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && php artisan down --retry=15 && git pull && composer install --no-dev --optimize-autoloader && php artisan migrate --force && php artisan optimize:clear && php artisan up && exit"
run: >
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "
cd ${{ secrets.WORK_DIR }} &&
php artisan down --retry=15 &&
git pull &&
composer install --no-dev --optimize-autoloader &&
php artisan migrate --force &&
php artisan optimize:clear &&
php artisan up &&
exit"
- name: cleanup
run: rm -rf ~/.ssh

0 comments on commit 5a52fb4

Please sign in to comment.