Skip to content

update

update #17

Workflow file for this run

name: PL Production
on:
push:
branches: [ "production" ]
# pull_request:
# branches: [ "production" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploying
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSHKEY }}
script: |
cd /var/www/plserver
git pull origin production
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
php artisan migrate --force
php artisan optimize:clear
php artisan optimize