update payment controller #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Laravel CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ssh and deploy app | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
port: ${{ secrets.SSH_PORT }} | |
script: | | |
cd /var/www/test/laravel | |
sudo git pull origin main | |
composer install --no-dev --optimize-autoloader | |
php artisan migrate | |
php artisan optimize | |
php artisan optimize:clear | |
php artisan config:cache | |
php artisan event:cache | |
php artisan route:cache | |
php artisan view:cache | |
echo "deployment success" |