-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from 316filip/develop
Develop
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |