diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6177ab8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: deployment +on: + push: + branches: [main] +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 --force + php artisan migrate --force + php artisan db:seed --force + npm install + npm run build