Skip to content

Update cpanel-deploy.yml #55

Update cpanel-deploy.yml

Update cpanel-deploy.yml #55

Workflow file for this run

name: cPanel Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to cPanel
id: deploy
uses: paxha/cpanel-deploy@v4.0
with:
host: {{ secrets.CPANEL_HOSTING_URL }}

Check failure on line 15 in .github/workflows/cpanel-deploy.yml

View workflow run for this annotation

GitHub Actions / cPanel Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/cpanel-deploy.yml (Line: 15, Col: 17): A mapping was not expected .github/workflows/cpanel-deploy.yml (Line: 17, Col: 21): A mapping was not expected
port: '2083' # Optional. Don't change it unless you know what you're doing
username: {{ secrets.CPANEL_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"
- 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 }}