forked from TFMM/silent-auction
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c6be2f1e3 | |||
| cee16de419 |
@@ -0,0 +1,29 @@
|
|||||||
|
name: Deploy to Remote Server
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Deploy and optimize
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
port: ${{ secrets.SSH_PORT || 22 }}
|
||||||
|
script: |
|
||||||
|
cd ${{ secrets.DEPLOY_PATH }}
|
||||||
|
git pull origin master
|
||||||
|
composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||||
|
npm install
|
||||||
|
npm run prod
|
||||||
|
php artisan migrate --force
|
||||||
|
php artisan optimize:clear
|
||||||
Reference in New Issue
Block a user