From f7c446cfaa22ae058ae97f91f987ef36400338f0 Mon Sep 17 00:00:00 2001 From: EJAZ UL HAQ <54179609+ejaz-ul-haq@users.noreply.github.com> Date: Mon, 18 Mar 2024 23:49:37 +0500 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..bd8ad4a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +# This is a basic workflow to help you get started with Actions + +name: Auto-deploy-to-wpengine-development + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ main ] + +jobs: + deploy_to_dreamhost_sftp: + runs-on: ubuntu-latest + name: Deploy To Dreamhost sFTP + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Deploy file + uses: wlixcc/SFTP-Deploy-Action@v1.2.4 + with: + username: ${{ secrets.FTP_USERNAME }} + server: ${{ secrets.FTP_SERVER }} + port: ${{ secrets.FTP_PORT }} + local_path: './*' + remote_path: '/home/mairaj_wp_wpvisions/mairaj.wp.wpvisions.com' + sftp_only: true + password: ${{ secrets.FTP_PASSWORD }}