Skip to content

Commit

Permalink
Create cpanel-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jbwharris authored Apr 9, 2024
1 parent f2962b9 commit 0aaffd0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cpanel-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: cPanel Deployment

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to cPanel
id: deploy
uses: paxha/cpanel-deploy@v3
with:
host: '${{ secrets.CPANEL_HOSTING_URL }}'
port: '2083' # Optional. Don't change it unless you know what you're doing
username: 'your-username' # Your cPanel username
api_token: '${{ secrets.CPANEL_API_TOKEN }}' # Your cPanel API Token generated by above user.
remote_path: '${{ secrets.CPANEL_REMOTE_PATH }}'
branch: main # Optional e.g 'main' or 'master'
- name: echo deploy-duration
run: echo "Deployment took ${{ steps.deploy.outputs.duration }} milliseconds"

0 comments on commit 0aaffd0

Please sign in to comment.