PHPackages                             michael-rubel/artisan-release-command - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. michael-rubel/artisan-release-command

ActiveLibrary

michael-rubel/artisan-release-command
=====================================

Artisan command to create a GitHub release of your code.

2.0.2(1y ago)151.2kMITPHPPHP ^8.1CI failing

Since Aug 9Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/michael-rubel/artisan-release-command)[ Packagist](https://packagist.org/packages/michael-rubel/artisan-release-command)[ Docs](https://github.com/michael-rubel/artisan-release-command)[ Fund](https://paypal.com/donate/?hosted_button_id=KHLEL8PFS4AXJ)[ RSS](/packages/michael-rubel-artisan-release-command/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (9)Versions (11)Used By (0)

Artisan Release Command
=======================

[](#artisan-release-command)

[![tests](https://github.com/michael-rubel/artisan-release-command/actions/workflows/tests.yml/badge.svg)](https://github.com/michael-rubel/artisan-release-command/actions/workflows/tests.yml)[![infection](https://github.com/michael-rubel/artisan-release-command/actions/workflows/infection.yml/badge.svg)](https://github.com/michael-rubel/artisan-release-command/actions/workflows/infection.yml)[![backward-compat](https://github.com/michael-rubel/artisan-release-command/actions/workflows/backward-compat.yml/badge.svg)](https://github.com/michael-rubel/artisan-release-command/actions/workflows/backward-compat.yml)[![phpstan](https://github.com/michael-rubel/artisan-release-command/actions/workflows/phpstan.yml/badge.svg)](https://github.com/michael-rubel/artisan-release-command/actions/workflows/phpstan.yml)

Artisan command to create a GitHub release of your code.

### Prerequisites

[](#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
------------------

[](#standwithukraine)

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

Installation
------------

[](#installation)

Install the package using composer:

```
composer require michael-rubel/artisan-release-command --dev
```

Publish the config if you need to customize the command:

```
php artisan vendor:publish --tag="artisan-release-command-config"
```

Usage
-----

[](#usage)

Setup the GitHub Actions workflow trigger with the following parameters:

```
on:
  push:
    tags:
      - '[0-9]+.[0-9]+.[0-9]+'
```

Or alternatively:

```
on:
  release:
    types:
      - created
```

Create a versioning file, for example:

```
