Merge pull request #7 from 316filip/main #1
Workflow file for this run
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 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 }} |