With this github action script, you can make phar of your plugin and injecting virions with GitHub Actions easily.
This script aims for users who want to create phar on their private plugin because they can't use poggit to generate
phar plugin.
- Create directory
.github/workflows
in your root repository - Copy
phar-build.yml
from this repo into your.github/workflows
directory - Create file
.libraries.yml
if you're using virion(s) and then look at the example how to use it in this repo in the .libraries.yml file - Activate
Actions
on your plugin repo if its disabled - Trigger the actions to execute the script
- Done. You should have the generated phar now ๐๐ป ๐
- If you want to release the phar on your repo, add
[release]
on the commit message - You can download the generated phar from actions artifact or repo release section
- This phar-builder support any pocketmine plugin version
- You are free to modify anything from
phar-build.yml
file
- https://github.com/brokiem-pm-pl/PvPToggle/tree/pm4
- https://github.com/brokiem/SimplePets/tree/broki-patch
You can open issue to ask your question.