Merge pull request #2 from rhidayatmajid/dev #5
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: Publish Website to CPanel | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
FTP-Deploy-Action: | |
name: FTP-Deploy-Action | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2.1.0 | |
with: | |
fetch-depth: 2 | |
- name: Build assets | |
run: npm install && npm run build | |
- name: Install PHP and Composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' # Adjust to match the PHP version used by your Laravel project | |
tools: 'composer' | |
- name: Install PHP dependencies | |
run: composer install --no-dev --optimize-autoloader | |
- name: FTP-Deploy-Action | |
uses: SamKirkland/FTP-Deploy-Action@4.3.3 | |
with: | |
server: ${{ secrets.SERVER }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} |