Skip to content

Commit

Permalink
Merge pull request #6 from 316filip/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
316filip authored Dec 3, 2024
2 parents 6fc549d + c949fed commit 978ebec
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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 }}

0 comments on commit 978ebec

Please sign in to comment.