Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ejaz-ul-haq authored Mar 18, 2024
1 parent 7c8ae5c commit f7c446c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}

0 comments on commit f7c446c

Please sign in to comment.