Skip to content

Commit

Permalink
Merge pull request #121 from coenjacobs/fix-release-script
Browse files Browse the repository at this point in the history
Fix release script for building PHAR without development dependencies
  • Loading branch information
coenjacobs authored Feb 2, 2021
2 parents 2cb1b61 + 72a9e11 commit dbcdeb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@ jobs:

- name: Create .phar
run: |
vendor/bin/phar-composer build .
php mozart.phar --version
wget -O phar-composer.phar https://github.com/clue/phar-composer/releases/download/v1.2.0/phar-composer-1.2.0.phar
mkdir build
mv vendor build/vendor
mv src build/src
mv bin build/bin
mv composer.json build
php -d phar.readonly=off phar-composer.phar build ./build/
- name: Test run mozart
run: php mozart.phar --version

- uses: meeDamian/[email protected]
with:
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
}
},
"require-dev": {
"clue/phar-composer": "^1.2",
"phpunit/phpunit": "^8.5",
"squizlabs/php_codesniffer": "^3.5",
"mheap/phpunit-github-actions-printer": "^1.4",
Expand Down

1 comment on commit dbcdeb9

@szepeviktor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coenjacobs WoW! 14MB->1MB

Please sign in to comment.