new colors added. #66
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: Deploy Laravel Project to cPanel via FTP | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
- name: Install Composer dependencies | |
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader --no-dev | |
- name: Build assets | |
run: npm install && npm run build | |
- name: Deploy via FTP | |
uses: SamKirkland/FTP-Deploy-Action@4.2.0 | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
exclude: | | |
**/node_modules/** | |
**/vendor/** |