Skip to content

[Release] v1.1.1

[Release] v1.1.1 #88

Workflow file for this run

name: Build
on: push
jobs:
build:
name: Phar building
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[Build]')"
steps:
- name: Startup
uses: actions/checkout@v2
- name: Checkout PharBuilder
uses: actions/checkout@v2
with:
repository: NetherGamesMC/PharBuilder
token: ${{ secrets.ng_token }}
path: PharBuilder
- name: Download PHP Release
uses: dsaltares/fetch-gh-release-asset@0.06
with:
file: Linux.zip
repo: NetherGamesMC/php-build-scripts
version: "tags/8.2-pm5"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack PHP Release
run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz
- name: Build
run: |
echo Building...
chmod +x PharBuilder/BuildScript.php
./bin/php7/bin/php -dphar.readonly=0 PharBuilder/BuildScript.php --make "" --out PharBuilder/VanillaGenerator.phar
echo Build completed!
- name: Upload
uses: actions/upload-artifact@v2.2.4
with:
name: VanillaGenerator
path: PharBuilder/VanillaGenerator.phar