Skip to content

Commit

Permalink
Use Pharynx workflow to inject instead of poggit
Browse files Browse the repository at this point in the history
also Fixes #29
  • Loading branch information
JavierLeon9966 committed Feb 16, 2024
1 parent ffed6fb commit 48e8f47
Show file tree
Hide file tree
Showing 4 changed files with 2,025 additions and 118 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
- push
- pull_request
jobs:
pharynx:
name: build phar
permissions:
contents: write
runs-on: ubuntu-20.04
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
strategy:
matrix:
php:
- "8.2"
steps:
- uses: actions/checkout@v3
- uses: pmmp/[email protected]
with:
php-version: ${{ matrix.php }}
install-path: "../bin"
pm-version-major: "5"
- uses: SOF3/[email protected]
id: pharynx
- uses: actions/upload-artifact@v3
with:
name: plugin.phar
path: ${{steps.pharynx.outputs.output-phar}}
13 changes: 0 additions & 13 deletions .poggit.yml

This file was deleted.

22 changes: 7 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,24 @@
"description": "A properly made duels plugin for PocketMine-MP",
"type": "project",
"license": "GPL-3.0-only",
"scripts": {
"build": "php -dphar.readonly=0 vendor/bin/pharynx -i=. -c -p=ProperDuels.phar"
},
"require": {
"pocketmine/pocketmine-mp": "^5.0.0",
"sof3/libasynql": "^4.2.0",
"muqsit/simple-packet-handler": "dev-pm5",
"paroxity/commando": "master"
"cortexpe/commando": "dev-fork"
},
"require-dev": {
"sof3/pharynx": "^0.3.0",
"phpstan/phpstan": "^1.2.0",
"phpstan/phpstan-strict-rules": "^1.0",
"phpstan/extension-installer": "^1.0"
},
"repositories": [
{
"type": "package",
"package": {
"name": "paroxity/commando",
"version": "master",
"autoload": {
"classmap": ["src/"]
},
"source": {
"url": "https://github.com/paroxity/commando",
"type": "git",
"reference": "master"
}
}
"type": "vcs",
"url": "https://github.com/javierleon9966/commando"
}
],
"autoload": {
Expand Down
Loading

0 comments on commit 48e8f47

Please sign in to comment.