Skip to content

Decrease log-level for ftp deploy #46

Decrease log-level for ftp deploy

Decrease log-level for ftp deploy #46

Workflow file for this run

on: push
name: 🚀 Build & Deploy
jobs:
web-deploy:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install Composer dependencies
run: composer install --prefer-dist --no-progress
- name: Setup Node / NPM
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Cache NPM packages
id: npm-cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: NPM install
run: npm install
- name: NPM build
run: npm run build
- name: Deploy files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
server: 149.210.213.94
username: pool@joeke.dev
password: ${{ secrets.ftp_password }}
log-level: 'minimal'
exclude: |
**/.git*
**/.git*/**
- name: Run Laravel migrations
uses: appleboy/ssh-action@v1.0.3
with:
host: 149.210.213.94
username: ${{ secrets.ssh_username }}
password: ${{ secrets.ssh_password }}
script: cd ~/domains/pool.joeke.dev && /usr/local/php82/bin/php artisan migrate --force