Skip to content

Commit

Permalink
Update laravel.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
1119-DuyNguyen authored Apr 20, 2024
1 parent 22eba6f commit 083ea38
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.1'
- uses: actions/checkout@v3
- uses: actions/setup-node@master
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Sync files
uses: SamKirkland/[email protected]
- name: 📂 Deploy to server via ssh
uses: appleboy/[email protected]
with:
server: 103.221.221.20
username: [email protected]
password: $35L2YAHA~wn
server-dir: /
host: ${{ secrets.HOST_LARAVEL }}
username: ${{ secrets.USERNAME_LARAVEL }}
password: ${{ secrets.PASSWORD_LARAVEL }}
port: ${{ secrets.PORT_SSH_LARAVEL }}
script: "cd /home/eenelpah/nguyenthanhduy.id.vn && sh ./.scripts/deploy.sh"


0 comments on commit 083ea38

Please sign in to comment.