drift icon indicating copy to clipboard operation
drift copied to clipboard

feat: add PHAR generation on tag

Open owenvoke opened this issue 5 years ago • 1 comments

This adds a Box PHAR workflow to generate a PHAR for Drift when a new tag is pushed.

Check out https://github.com/owenvoke/drift/actions/runs/208504306 for an example.

What this does:

  • Creates PHAR
  • Adds it as an "artifact" which lets you download the generated PHAR through GitHub's UI
  • Creates a release on GitHub and adds the PHAR as an asset

Issues

  • ~~Probably need to get PHAR scoping working before merging, I had issues locally (see CI workflow here)~~. This should now be working...
  • The PHAR does not actually work (🤦🏻) as the RectorRunner executes the Rector binary, which is inside the PHAR so can't be run...

Closes https://github.com/pestphp/drift/issues/21

owenvoke avatar Aug 14 '20 11:08 owenvoke

Awesome, hope you solve the issues so the phar works 👍

olivernybroe avatar Aug 15 '20 06:08 olivernybroe