forked from Muqsit/VanillaGenerator
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (36 loc) · 1.17 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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