Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Yogabayu committed Aug 11, 2024
1 parent f973400 commit a0c16ea
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,14 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Get the latest code
uses: actions/[email protected]
- name: Install Dependencies
run: composer update --ignore-platform-reqs
- name: Set up PHP
uses: shivammathur/setup-php@v2
- name: Deploy using SSH
uses: appleboy/ssh-action@master
with:
php-version: '8.2'
- name: 📂 Sync files
uses: SamKirkland/[email protected]
with:
server: ftp.yogabayuap.com
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
server-dir: public_html/desa.yogabayuap.com/
- name: Optimize site
run: php artisan optimize:clear
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
cd public_html/desa.yogabayuap.com/
git pull
php artisan optimize:clear

0 comments on commit a0c16ea

Please sign in to comment.