Clean dead code and add missing comments #28
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: | | |
cd /home/laravel/project | |
if [ -d "./T-Caps" ]; then | |
cd ./T-Caps | |
git pull | |
else | |
git clone https://github.com/HE-Arc/T-Caps.git | |
cd ./T-Caps | |
fi | |
composer install --optimize-autoloader --no-dev | |
npm install | |
cp ../.env .env | |
sudo php artisan key:generate --force | |
sudo php artisan migrate --force | |
sudo php artisan storage:link | |
sudo php artisan config:cache | |
sudo php artisan route:cache | |
sudo php artisan view:cache | |
sudo chown -R www-data:www-data /home/laravel/project/T-Caps/storage | |
sudo chown -R www-data:www-data /home/laravel/project/T-Caps/public/source/media | |
npm run build |