Merge pull request #30 from palladiumkenya/main #9
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: To production! | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote connection | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.PRODUCTION_HOST }} | |
username: ${{ secrets.PRODUCTION_USERNAME }} | |
password: ${{ secrets.PRODUCTION_PASSWORD }} | |
port: ${{ secrets.PRODUCTION_PORT }} | |
script: | | |
cd /var/www/ushauri_dashboard | |
sudo git pull origin master | |
# optimizations | |
php artisan config:cache | |
php artisan config:clear |