Skip to content

Commit

Permalink
Update cpanel-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jbwharris authored Feb 3, 2025
1 parent fe40398 commit dfa0f90
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/cpanel-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,21 @@ on:
branches:
- main
jobs:
deploy:
FTP-Deploy:
name: FTP-Deploy
runs-on: ubuntu-latest
steps:
- name: Deploy to cPanel
id: deploy
uses: pinkasey/cpanel-deploy-action@v1.0.0
with:
hostname: '${{ secrets.CPANEL_HOSTING_URL }}'
repository_root: '${{ secrets.CPANEL_REMOTE_PATH }}'
branch: main
cpanel_token: '${{ secrets.CPANEL_API_TOKEN }}'
cpanel_username: '${{ secrets.CPANEL_USERNAME }}'
- name: echo deploy-duration
run: echo "Deployment took ${{ steps.deploy.outputs.duration }} milliseconds"
- name: Purge cache
uses: jakejarvis/cloudflare-purge-action@master
env:
# Zone is required by both authentication methods
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
- uses: actions/checkout@v2
- name: Upload ftp
uses: sebastianpopp/ftp-action@releases/v2
with:
host: '${{ secrets.CPANEL_FTP_PATH }}'
user: '${{ secrets.CPANEL_FTP_USER }}'
password: '${{ secrets.CPANEL_FTP_PASSWORD }}'
localDir: '${{ secrets.CPANEL_FTP_DIR }}'
- name: Purge cache
uses: jakejarvis/cloudflare-purge-action@master
env:
# Zone is required by both authentication methods
CLOUDFLARE_ZONE: '${{ secrets.CLOUDFLARE_ZONE }}'
CLOUDFLARE_TOKEN: '${{ secrets.CLOUDFLARE_TOKEN }}'

0 comments on commit dfa0f90

Please sign in to comment.