Update main.yml #9
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
name: Deploy app | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Deploy: | |
runs-on: self-hosted | |
steps: | |
- name: Deploying app | |
run: | | |
rm -rf /home/laravel/project/T-Caps | |
cd /home/laravel/project | |
git clone https://github.com/HE-Arc/T-Caps.git | |
cd ./T-Caps | |
composer install --optimize-autoloader --no-dev | |
npm install | |
cp ../.env .env | |
php artisan key:generate --force | |
php artisan migrate --force | |
php artisan config:cache | |
php artisan route:cache | |
php artisan view:cache | |
npm run build |