Skip to content

Update main.yml

Update main.yml #4

Workflow file for this run

name: deployment
on:
push:
branches: [CICD-setup]
jobs:
deploy:
runs-on: self-hosted
steps:
- name: git pull
run: |
cd /home/laravel/project/Timeliner/timeliner
git fetch --all
git checkout main
git pull --all
- name: installing dependencies and setup
run: |
cd /home/laravel/project/Timeliner/timeliner
composer install --optimize-autoloader --no-dev
php artisan key:generate
php artisan migrate
php artisan db:seed
npm install
npm run build