From 7722dfaf320b699ad6fd33210892d1c1efb4766b Mon Sep 17 00:00:00 2001 From: "Vega Nicholas S." Date: Sun, 29 Sep 2024 08:59:54 +0700 Subject: [PATCH] feat: setup build workflow --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9fba8d8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build phar +on: + push: + branches: [ci-test] +jobs: + pharynx: + name: build phar + permissions: + contents: write + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: composer + - run: composer install --ignore-platform-reqs + - uses: SOF3/pharynx@v0.2 + id: pharynx + with: + additional-assets: | + assets/icon.png + - uses: actions/upload-artifact@v3 + with: + name: RedstoneMechanics.phar + path: ${{steps.pharynx.outputs.output-phar}} \ No newline at end of file