Skip to content

Commit dbcdeb9

Browse files
authored
Merge pull request #121 from coenjacobs/fix-release-script
Fix release script for building PHAR without development dependencies
2 parents 2cb1b61 + 72a9e11 commit dbcdeb9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@ jobs:
1919

2020
- name: Create .phar
2121
run: |
22-
vendor/bin/phar-composer build .
23-
php mozart.phar --version
22+
wget -O phar-composer.phar https://github.com/clue/phar-composer/releases/download/v1.2.0/phar-composer-1.2.0.phar
23+
mkdir build
24+
mv vendor build/vendor
25+
mv src build/src
26+
mv bin build/bin
27+
mv composer.json build
28+
php -d phar.readonly=off phar-composer.phar build ./build/
29+
30+
- name: Test run mozart
31+
run: php mozart.phar --version
2432

2533
- uses: meeDamian/github-release@2.0
2634
with:

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
}
2424
},
2525
"require-dev": {
26-
"clue/phar-composer": "^1.2",
2726
"phpunit/phpunit": "^8.5",
2827
"squizlabs/php_codesniffer": "^3.5",
2928
"mheap/phpunit-github-actions-printer": "^1.4",

0 commit comments

Comments
 (0)