diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..ed66078fe --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Deploy to TorrentPier Demo + +on: + push: + branches: + - master + +jobs: + deploy: + name: 🎉 Deploy + runs-on: ubuntu-latest + 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 }} + exclude: | + **/.git* + **/.git*/** + .env diff --git a/README.md b/README.md index 59cdc8af9..93a1d58ac 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Version Last release Size + Deployed to TorrentPier Demo with FTP Deploy Action

## 🐂 About TorrentPier