You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Composer package action
0.1.3
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.0
id: composer_package
with:
BUILD_DIRECTORY_NAME: ''
BUILD_FILE_NAME: ''
- run: echo ${{ steps.composer_package.outputs.path }}
- run: echo ${{ steps.composer_package.outputs.directory }}
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.10-1 -t=composer-package-action
initialization
docker run --rm -e GITHUB_WORKSPACE=/usr/bin/app -v .:/usr/bin/app composer-package-action composer install
running
docker run --rm -e GITHUB_WORKSPACE=/usr/bin/app -v .:/usr/bin/app composer-package-action php app.php