mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Update ci.yml
This commit is contained in:
parent
5e2d6f277e
commit
dc200a6447
1 changed files with 29 additions and 0 deletions
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
|
@ -46,3 +46,32 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: TorrentPier-v2.4
|
name: TorrentPier-v2.4
|
||||||
path: ${{ steps.create-zip.outputs.ZIP_NAME }}
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue