Skip to content

Create main.yml

Create main.yml #1

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 pull --all
- name: installing dependencies and setup
run:
composer install --optimize-autoloader --no-dev
php artisan key:generate
php artisan migrate
php artisan db:seed
npm install
npm run build