From 6b44284423fa60a31f86fe2039c5dc0aa21b2185 Mon Sep 17 00:00:00 2001 From: Ali Colville Date: Wed, 11 Sep 2024 13:16:14 +0100 Subject: [PATCH] Update ftp.yml --- .github/workflows/ftp.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ftp.yml b/.github/workflows/ftp.yml index 3e5d9322..318d497a 100644 --- a/.github/workflows/ftp.yml +++ b/.github/workflows/ftp.yml @@ -4,17 +4,24 @@ on: branches: - master jobs: - web-deploy: - name: 🎉 Deploy + build: + name: Build release zip runs-on: ubuntu-latest steps: - - name: 🚚 Get latest code + - name: Checkout uses: actions/checkout@v3 - - name: 📂 Sync files - uses: leandrorepos/ftp-deploy@1.0.0 - with: - server: ${{ secrets.FTP_URL }} - username: ${{ secrets.FTP_USERNAME }} - password: ${{ secrets.FTP_PASSWORD }} + - name: Build plugin # Remove or modify this step as needed + run: | + composer install --no-dev + npm install + npm run build + + - name: Generate zip + uses: 10up/action-wordpress-plugin-build-zip@stable + + + # server: ${{ secrets.FTP_URL }} + # username: ${{ secrets.FTP_USERNAME }} + # password: ${{ secrets.FTP_PASSWORD }}