Обновить .gitea/workflows/action.yaml
All checks were successful
Deploy Wishlist / deploy (push) Successful in 19s
All checks were successful
Deploy Wishlist / deploy (push) Successful in 19s
This commit is contained in:
parent
71361c7e7d
commit
a343813b0f
|
@ -3,6 +3,9 @@ on:
|
|||
push:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
DEPLOY_DIR: ${{ secrets.DEPLOY_DIR }}
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu
|
||||
|
@ -29,25 +32,10 @@ jobs:
|
|||
- name: Build assets
|
||||
run: npm run build
|
||||
|
||||
#- name: Prepare deployment directory
|
||||
# run: |
|
||||
# sudo chown -R $USER:$USER $DEPLOY_DIR
|
||||
# sudo chmod -R 775 $DEPLOY_DIR
|
||||
|
||||
- name: Copy files to deployment directory
|
||||
run: |
|
||||
sudo rsync -av ./ ${DEPLOY_DIR}/
|
||||
|
||||
#- name: Run migrations
|
||||
# run: php artisan migrate --force
|
||||
|
||||
#- name: Clear cache
|
||||
# run: |
|
||||
# php artisan cache:clear
|
||||
# php artisan view:clear
|
||||
# php artisan route:clear
|
||||
# php artisan config:clear
|
||||
|
||||
- name: Restart PHP service
|
||||
run: sudo systemctl restart php8.2-fpm
|
||||
|
||||
|
|
Loading…
Reference in New Issue