Skip to content

Merge pull request #7 from 316filip/main #1

Merge pull request #7 from 316filip/main

Merge pull request #7 from 316filip/main #1

Workflow file for this run

name: Deploy to FTPS
on:
push:
branches:
- production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# 1. Checkout the repository code
- name: Checkout code
uses: actions/checkout@v4
# 2. Set up PHP and Composer
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
tools: composer
- name: Install Composer dependencies
run: composer install --no-dev --optimize-autoloader
# 3. Deploy files to FTPS server
- name: Deploy to FTPS server
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_LOGIN }}
password: ${{ secrets.FTP_PASSWORD }}