Skip to content

Commit

Permalink
Create main.yml, setup deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
katsulon authored Oct 24, 2024
1 parent 9ef4550 commit 11274af
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 11274af

Please sign in to comment.