Release version 4.1.0 #44
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: distribute | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
name: distribute | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
attestations: write | |
strategy: | |
fail-fast: true | |
matrix: | |
php: | |
- "8.2" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "${{ matrix.php }}" | |
- name: Install Composer dependencies | |
run: composer install --no-progress --prefer-dist --optimize-autoloader | |
- name: Install Box Phar bundler | |
run: wget --quiet https://github.com/box-project/box/releases/download/4.6.1/box.phar && sudo mv box.phar /usr/bin/box && sudo chmod u+x /usr/bin/box | |
shell: bash | |
- name: Build PHAR | |
run: /usr/bin/box compile | |
- name: Check generated PHAR | |
run: bin/lean-package-validator.phar --version | |
- name: Create release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: bin/lean-package-validator.phar | |
- name: Create attestation | |
uses: actions/attest-build-provenance@v1 | |
with: | |
subject-path: bin/lean-package-validator.phar |