chore: remove vercel.json #6
Workflow file for this run
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: Github CI | |
on: | |
push: | |
tags: | |
- v** | |
jobs: | |
run-migration: | |
runs-on: ubuntu-latest | |
if: github.ref_type == 'tag' && contains(github.ref_name, 'migration') | |
steps: | |
- name: Running only Migration and Seed | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script: | | |
cd /var/www/sanber-api/ | |
sudo git pull origin master | |
composer run-script startup-project | |
php artisan l5-swagger:generate | |
run-build: | |
runs-on: ubuntu-latest | |
if: github.ref_type == 'tag' && contains(github.ref_name, 'build') | |
steps: | |
- name: Running Build without Migration and Seed | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script: | | |
cd /var/www/sanber-api/ | |
sudo git pull origin master | |
php artisan l5-swagger:generate |