diff --git a/.github/workflows/ftp-deploy.yml b/.github/workflows/ftp-deploy-develop.yml similarity index 91% rename from .github/workflows/ftp-deploy.yml rename to .github/workflows/ftp-deploy-develop.yml index 342868b9..9fea04be 100644 --- a/.github/workflows/ftp-deploy.yml +++ b/.github/workflows/ftp-deploy-develop.yml @@ -19,4 +19,4 @@ jobs: password: ${{ secrets.FTP_PASSWORD }} protocol: ftp port: 21 - server-dir: ${{ secrets.FTP_DIR }} + server-dir: ${{ secrets.DEV_FTP_DIR }} diff --git a/.github/workflows/ftp-deploy-stable.yml b/.github/workflows/ftp-deploy-stable.yml new file mode 100644 index 00000000..48c15d52 --- /dev/null +++ b/.github/workflows/ftp-deploy-stable.yml @@ -0,0 +1,22 @@ +name: Deploy to wishthis.online +on: + push: + branches: + - 'stable' +jobs: + web-deploy: + name: 🎉 Deploy + runs-on: ubuntu-latest + steps: + - name: 🚚 Get latest code + uses: actions/checkout@v2 + + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@4.3.0 + with: + server: ${{ secrets.FTP_HOST }} + username: ${{ secrets.FTP_USER }} + password: ${{ secrets.FTP_PASSWORD }} + protocol: ftp + port: 21 + server-dir: ${{ secrets.FTP_DIR }}