Merge pull request #1920 from Wotuu/development #144
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
# Dummy commits done: 0 | |
name: Live Deploy | |
on: | |
push: | |
branches: master | |
jobs: | |
deploy-live: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update live environment | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SERVER_IP }} | |
username: ${{ secrets.DEPLOY_USERNAME }} | |
key: ${{ secrets.DEPLOY_PRIVATE_KEY }} | |
script: cd /var/www/html/keystone.guru.live/; | |
php artisan readonly:enable && | |
php artisan db:backup && | |
php artisan up; | |
php artisan down --render="errors::503" --retry 60; | |
php artisan environment:updateprepare live && | |
php artisan environment:update live && | |
php artisan report:release discord && | |
php artisan report:release reddit; | |
php artisan readonly:disable && | |
php artisan up |