Download the PHP package michael-rubel/artisan-release-command without Composer
On this page you can find all versions of the php package michael-rubel/artisan-release-command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michael-rubel/artisan-release-command
More information about michael-rubel/artisan-release-command
Files in michael-rubel/artisan-release-command
Package artisan-release-command
Short Description Artisan command to create a GitHub release of your code.
License MIT
Homepage https://github.com/michael-rubel/artisan-release-command
Informations about the package artisan-release-command
Artisan Release Command
Artisan command to create a GitHub release of your code.
Prerequisites
- GitHub Actions
- GitHub CLI
- Access to a version file (Linux permissions).
The package requires PHP 8.1
or higher and Laravel 10.8
or higher.
StandWithUkraine
Installation
Install the package using composer:
Publish the config if you need to customize the command:
Usage
Setup the GitHub Actions workflow trigger with the following parameters:
Or alternatively:
Create a versioning file, for example:
Note: the version file should always contain a VERSION
constant for the command to work. You can configure the constant name in the configuration file if you want to name it for example "APP_VERSION"
The command will bump version based on the SemVer 2.0 type you'll provide.
It will pick the latest release you have in the versioning file, bump it a step further and push the change to the remote repository using your current Git setup. Make sure you're authorized to perform basic operations on your repository.
For example:
Available options: major
, minor
, patch
Default value: patch
After the version is pushed, it will create a release using GitHub CLI and provide auto-generated notes.
Beta release
Creates the pre-release based on the given version type:
If you had 0.0.1 in your version file, after this command it will be 1.0.0-beta, and the release will be marked as "pre-release" on GitHub (deployment won't be triggered if you use [0-9]+.[0-9]+.[0-9]+
pattern in GitHub Actions).
Testing
License
The MIT License (MIT). Please see License File for more information.
All versions of artisan-release-command with dependencies
illuminate/contracts Version ^10.8|^11.0
spatie/laravel-package-tools Version ^1.14