Giter Site home page Giter Site logo

cpanel-deploy's Introduction

cPanel Deploy

Deploy to cPanel through GitHub Actions.

Getting Started

To deploy your code to cPanel using GitHub Actions, follow these steps:

  1. Create a workflow file (e.g., .github/workflows/cpanel-deployment.yml) in your repository.

  2. Add the following content to the workflow file:

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
        with:
          host: 'https://serverxxx.web-hosting.com'
          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: '/home/your_username/repositories/your_repository'
          branch: main # Optional e.g 'main' or 'master'
          deploy: false # Optional e.g true or false. If you don't have .cpanel.yml file or If you don't want to run this file.
      - name: echo deploy-duration
        run: echo "Deployment took ${{ steps.deploy.outputs.duration }} milliseconds"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.