This action uses the cPanel API to trigger a git sync process and execute the .cpanel.yml as specified in https://docs.cpanel.net/cpanel/files/git-version-control
Input | Required | Description |
---|---|---|
cpanel-url | ✔️ | cPanel access URL |
deploy-user | ✔️ | cPanel deploy user |
deploy-key | ✔️ | cPanel deploy key |
cpanel-repository-root | ✔️ | cPanel git repository root |
branch | ✔️ | The branch that will be synced |
timeout_ms | Timeout in ms to wait the deploy status |
cPanel generated deployment ID
uses: ivao-brasil/deploy-to-cpanel-api@main
with:
cpanel-url: "https://abc/cpsess1234"
deploy-user: "test"
deploy-key: "test"
cpanel-repository-root: "/home/test/deploy"
branch: main
It's advised to use Github secrets to safely provide the parameters.