Обновить .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
|
@ -2,6 +2,9 @@ name: Deploy Wishlist
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
DEPLOY_DIR: ${{ secrets.DEPLOY_DIR }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -29,25 +32,10 @@ jobs:
|
||||||
- name: Build assets
|
- name: Build assets
|
||||||
run: npm run build
|
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
|
- name: Copy files to deployment directory
|
||||||
run: |
|
run: |
|
||||||
sudo rsync -av ./ ${DEPLOY_DIR}/
|
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
|
- name: Restart PHP service
|
||||||
run: sudo systemctl restart php8.2-fpm
|
run: sudo systemctl restart php8.2-fpm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue