With this GitHub Action, you can build a package for the PHP Composer package manager.
steps:
- uses: actions/checkout@v4
- uses: rosven9856/composer-package-action@0.1.5
id: composer_package
with:
directory: ''
file: ''
- run: echo ${{ steps.composer_package.outputs.file_path }}
- run: echo ${{ steps.composer_package.outputs.directory_path }}
The name of the directory for package building
Default value: .build
The name of the built package file
Default value: package.zip
The path to the building directory
The path to the compiled package archive
build
docker build . --build-arg=PHP_VERSION=8.3 -t=composer-package-action
initialization
docker run --rm -v .:/usr/bin/app composer-package-action composer install
running
docker run --rm -v .:/usr/bin/app composer-package-action php app.php
testing
docker run --rm -v .:/usr/bin/app composer-package-action composer tests