Skip to content

Commit

Permalink
upgrade box config files and GH release workflow (to use the new pipe…
Browse files Browse the repository at this point in the history
…line commands)
  • Loading branch information
llaville committed Aug 25, 2024
1 parent 8040094 commit c99d696
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
- ubuntu-22.04
php:
- 8.2
tools:
- box:4.6 # available since https://github.com/shivammathur/setup-php/releases/tag/2.27.0

steps:
- # https://github.com/actions/checkout
Expand All @@ -46,12 +44,9 @@ jobs:
- # Build the current release with artifacts (php archive)
name: Build Release Artifact
run: |
bin/box-manifest manifest:build --ansi -vv -c box.json --output-file=sbom.xml
bin/box-manifest manifest:build --ansi -vv -c box.json --output-file=sbom.json
bin/box-manifest manifest:build --ansi -vv -c box.json --output-file=manifest.txt --format ansi
bin/box-manifest manifest:build --ansi -vv -c box.json --output-file=console.txt --format console
bin/box-manifest manifest:stub --ansi -vv -c box.json --output-file=stub.php --resource console.txt --resource manifest.txt --resource sbom.xml --resource sbom.json
box compile --ansi -vv -c box.json.dist
bin/box-manifest make -r console-table.txt -r plain.txt -r sbom.json build
bin/box-manifest make -r console-table.txt -r plain.txt -r sbom.json --output-stub stub.php stub
bin/box-manifest make compile -c box.json.dist -vvv --ansi
- # https://github.com/softprops/action-gh-release
name: Create Release from current tag
Expand Down
10 changes: 9 additions & 1 deletion box.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"compression": "GZ",
"directories": ["bin", "src", "vendor"],
"directories-bin": [
"vendor/humbug/box/res/requirement-checker"
"vendor/humbug/box/res/requirement-checker",
"resources"
],
"files": [
"autoload.php",
"bootstrap.php"
],
"files-bin": [
"vendor/humbug/php-scoper/vendor-hotfix/.gitkeep"
]
}
15 changes: 9 additions & 6 deletions box.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@
"vendor/humbug/box/res/requirement-checker",
"resources"
],
"files": [
"autoload.php",
"bootstrap.php"
],
"files-bin": [
"vendor/humbug/php-scoper/vendor-hotfix/.gitkeep",
"console.txt",
"manifest.txt",
"console-table.txt",
"plain.txt",
"sbom.json",
"sbom.xml"
".box.manifests.bin"
],
"stub": "stub.php",
"map": [
{ "console.txt": ".box.manifests/console.txt" },
{ "manifest.txt": ".box.manifests/manifest.txt" },
{ "sbom.xml": ".box.manifests/sbom.xml" },
{ "console-table.txt": ".box.manifests/console-table.txt" },
{ "plain.txt": ".box.manifests/plain.txt" },
{ "sbom.json": ".box.manifests/sbom.json" }
],
"blacklist": [
Expand Down

0 comments on commit c99d696

Please sign in to comment.