Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
Refactor README.md and composer.json for Laravel cpanel auto deploy p…
Browse files Browse the repository at this point in the history
…ackage, updating descriptions and dependencies.
  • Loading branch information
thejmitchener committed Jun 5, 2024
1 parent bd37050 commit d2152b3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Laravel cpanel auto deploy package.
# Laravel cpanel auto deploy package

[![Latest Version on Packagist](https://img.shields.io/packagist/v/fuelviews/laravel-cpanel-auto-deploy.svg?style=flat-square)](https://packagist.org/packages/fuelviews/laravel-cpanel-auto-deploy)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/fuelviews/laravel-cpanel-auto-deploy/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/fuelviews/laravel-cpanel-auto-deploy/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/fuelviews/laravel-cpanel-auto-deploy/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/fuelviews/laravel-cpanel-auto-deploy/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/fuelviews/laravel-cpanel-auto-deploy.svg?style=flat-square)](https://packagist.org/packages/fuelviews/laravel-cpanel-auto-deploy)

Laravel cpanel auto deploy package streamlines the deployment process for laravel applications on cpanel hosting environments.
Laravel cpanel auto deploy package streamlines the deployment process for laravel applications on dedicated whm/cpanel hosting environments.

## Installation

Expand All @@ -15,7 +15,11 @@ You can require the package and it's dependencies via composer:
composer require fuelviews/laravel-cpanel-auto-deploy
```

You can copy the default github action workflow from resources/workfllows/cpanel-auto-deploy.yml into .github/workflows/cpanel-auto-deploy.yml
You can copy the default github action workflow from :

```bash
resources/workfllows/cpanel-auto-deploy.yml into .github/workflows/cpanel-auto-deploy.yml
```

**Default github action workflow triggers on PR to development branch

Expand Down
12 changes: 5 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fuelviews/laravel-cpanel-auto-deploy",
"description": "Fuelviews cpanel auto deploy package.",
"description": "Laravel cpanel auto deploy package",
"keywords": [
"Fuelviews",
"laravel",
Expand All @@ -17,8 +17,7 @@
],
"require": {
"php": "^8.2",
"spatie/laravel-package-tools": "^1.16",
"illuminate/contracts": "^10.0||^11.0"
"spatie/laravel-package-tools": "^1.16"
},
"require-dev": {
"laravel/pint": "^1.14",
Expand All @@ -34,8 +33,7 @@
},
"autoload": {
"psr-4": {
"Fuelviews\\CpanelAutoDeploy\\": "src/",
"Fuelviews\\CpanelAutoDeploy\\Database\\Factories\\": "database/factories/"
"Fuelviews\\CpanelAutoDeploy\\": "src/"
}
},
"autoload-dev": {
Expand Down Expand Up @@ -79,6 +77,6 @@
}
}
},
"minimum-stability": "dev",
"minimum-stability": "stable",
"prefer-stable": true
}
}
6 changes: 5 additions & 1 deletion resources/workflows/cpanel-auto-deploy.yml.stub
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: "cPanel Auto Deploy"

on:
push:
branches:
- main
pull_request:
types: [closed]
branches:
- development
- main
paths-ignore:
- 'CHANGELOG.md'

Expand All @@ -24,7 +28,7 @@ jobs:
script: "cd $HOME/app && /bin/chmod +x ./cpanel-auto-deploy.sh && ./cpanel-auto-deploy.sh"

deploy-production:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 0 additions & 5 deletions tests/ExampleTest.php

This file was deleted.

0 comments on commit d2152b3

Please sign in to comment.