From dc200a6447d3e7ca80a607089b9bea185df7c60d Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 16 Jul 2025 10:09:35 +0300 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e38c0ad2a..124337122 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,3 +46,32 @@ jobs: with: name: TorrentPier-v2.4 path: ${{ steps.create-zip.outputs.ZIP_NAME }} + + deploy: + name: 🎉 Deploy + runs-on: ubuntu-22.04 + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v4 + + - name: 🔩 Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + + - name: 🖇 Install Composer dependencies + run: composer install --no-progress --prefer-dist --optimize-autoloader + + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USERNAME }} + password: ${{ secrets.FTP_PASSWORD }} + server-dir: ${{ secrets.FTP_DIR }} + protocol: ${{ secrets.FTP_PROTOCOL }} + port: ${{ secrets.FTP_PORT }} + exclude: | + **/.git* + **/.git*/** + .env